public static T[] GetWrappedAttributes <T>(this BaseMightyMember mightyMember) where T : BaseMightyAttribute { var wrappedAttributes = new List <T>(); var wrappers = GetAttributes <BaseWrapperAttribute>(mightyMember.GetMemberInfo()); if (wrappers.Length > 0) { GetWrappedAttributes(wrappers, wrappedAttributes, mightyMember, mightyMember.Context.Target); } return(wrappedAttributes.ToArray()); }