/// <summary> /// /// </summary> /// <param name="instance"></param> /// <param name="attributeType"></param> /// <param name="inherit"></param> /// <param name="nonPublic"></param> /// <returns></returns> public static MethodMemberDescriptors RetrieveMemberDescriptors(object instance, bool inherit, bool nonPublic, Type attributeType) { if (null == instance) { throw new ArgumentNullException("instance"); } return(MethodMemberHelpers.RetrieveMemberDescriptors(instance.GetType(), inherit, nonPublic, attributeType)); }
/// <summary> /// /// </summary> /// <typeparam name="TDescriptor"></typeparam> /// <typeparam name="TCollection"></typeparam> /// <param name="instance"></param> /// <param name="inherit"></param> /// <param name="nonPublic"></param> /// <param name="attributeType"></param> /// <returns></returns> public static TCollection RetrieveMemberDescriptors <TDescriptor, TCollection>(object instance, bool inherit, bool nonPublic, Type attributeType) where TDescriptor : MemberDescriptor where TCollection : ReadOnlyListCollection <TDescriptor> { if (null == instance) { throw new ArgumentNullException("instance"); } return(MethodMemberHelpers.RetrieveMemberDescriptors <TDescriptor, TCollection>(instance.GetType(), inherit, nonPublic, attributeType)); }
/// <summary> /// /// </summary> /// <param name="declaringType"></param> /// <param name="inherit"></param> /// <param name="nonPublic"></param> /// <param name="attributeType"></param> /// <returns></returns> public static MethodMemberDescriptors RetrieveMemberDescriptors(Type declaringType, bool inherit, bool nonPublic, Type attributeType) { return(MethodMemberHelpers.RetrieveMemberDescriptors <MethodMemberDescriptor, MethodMemberDescriptors>(declaringType, inherit, nonPublic, attributeType)); }