/// <summary> /// /// </summary> /// <param name="instance"></param> /// <param name="methodName"></param> /// <param name="nonPublic"></param> /// <returns></returns> public static MethodInfo RetrieveMember(object instance, string methodName, bool nonPublic) { if (null == instance) { throw new ArgumentNullException("instance"); } return(MethodMemberHelpers.RetrieveMember(instance.GetType(), methodName, nonPublic)); }
/// <summary> /// /// </summary> /// <param name="instance"></param> /// <param name="methodName"></param> /// <param name="nonPublic"></param> /// <param name="types"></param> /// <param name="modifiers"></param> /// <returns></returns> public static MethodInfo RetrieveMember(object instance, string methodName, bool nonPublic, Binder binder, Type[] types, ParameterModifier[] modifiers) { if (null == instance) { throw new ArgumentNullException("instance"); } return(MethodMemberHelpers.RetrieveMember(instance.GetType(), methodName, nonPublic, binder, types, modifiers)); }
/// <summary> /// /// </summary> /// <typeparam name="TDescriptor"></typeparam> /// <param name="declaringType"></param> /// <param name="methodName"></param> /// <param name="nonPublic"></param> /// <param name="binder"></param> /// <param name="types"></param> /// <param name="modifiers"></param> /// <returns></returns> public static TDescriptor RetrieveMemberDescriptor <TDescriptor>(Type declaringType, string methodName, bool nonPublic, Binder binder, Type[] types, ParameterModifier[] modifiers) where TDescriptor : MemberDescriptor { return(MemberDescriptor.Initializer.Initialize <TDescriptor>(MethodMemberHelpers.RetrieveMember(declaringType, methodName, nonPublic, binder, types, modifiers))); }
/// <summary> /// /// </summary> /// <typeparam name="TDescriptor"></typeparam> /// <param name="declaringType"></param> /// <param name="methodName"></param> /// <param name="nonPublic"></param> /// <returns></returns> public static TDescriptor RetrieveMemberDescriptor <TDescriptor>(Type declaringType, string methodName, bool nonPublic) where TDescriptor : MemberDescriptor { return(MemberDescriptor.Initializer.Initialize <TDescriptor>(MethodMemberHelpers.RetrieveMember(declaringType, methodName, nonPublic))); }