сделать наоборот:
итерация
MemberInfo[] members = type.GetMembers();
и запрос
Object[] myAttributes = members[i].GetCustomAttributes(true);
или
foreach(MemberInfo member in type.GetMembers()) {
Object[] myAttributes = member.GetCustomAttributes(typeof(WoopAttribute),true);
if(myAttributes.Length > 0)
{
MemberInfo woopmember = member; //<--- gotcha
}
}
но с Linq гораздо приятнее:
var members = from member in type.GetMembers()
from attribute in member.GetCustomAttributes(typeof(WoopAttribute),true)
select member;