system\delegate.cs (13)
172if (_methodBase == null || d._methodBase == null || !(_methodBase is MethodInfo) || !(d._methodBase is MethodInfo))
223public MethodInfo Method
232protected virtual MethodInfo GetMethodImpl()
234if ((_methodBase == null) || !(_methodBase is MethodInfo))
277MethodInfo invoke = this.GetType().GetMethod("Invoke");
282_methodBase = (MethodInfo)RuntimeType.GetMethodBase(declaringType, method);
284return (MethodInfo)_methodBase;
484public static Delegate CreateDelegate(Type type, MethodInfo method, bool throwOnBindFailure)
527public static Delegate CreateDelegate(Type type, Object firstArgument, MethodInfo method)
535public static Delegate CreateDelegate(Type type, Object firstArgument, MethodInfo method, bool throwOnBindFailure)
641internal static Delegate CreateDelegateNoSecurityCheck(RuntimeType type, Object firstArgument, MethodInfo method)
677public static Delegate CreateDelegate(Type type, MethodInfo method)
system\reflection\cominterfaces.cs (23)
78MethodInfo GetMethod(String name, BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers);
79MethodInfo GetMethod(String name, BindingFlags bindingAttr);
80MethodInfo[] GetMethods(BindingFlags bindingAttr);
105MethodInfo GetMethod(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers);
106MethodInfo GetMethod(String name, Type[] types, ParameterModifier[] modifiers);
107MethodInfo GetMethod(String name, Type[] types);
108MethodInfo GetMethod(String name);
109MethodInfo[] GetMethods();
192MethodInfo EntryPoint { get; }
345[TypeLibImportClassAttribute(typeof(System.Reflection.MethodInfo))]
400MethodInfo GetBaseDefinition();
565MethodInfo[] GetAccessors(bool nonPublic);
566MethodInfo GetGetMethod(bool nonPublic);
567MethodInfo GetSetMethod(bool nonPublic);
572MethodInfo[] GetAccessors();
573MethodInfo GetGetMethod();
574MethodInfo GetSetMethod();
614MethodInfo GetAddMethod(bool nonPublic);
615MethodInfo GetRemoveMethod(bool nonPublic);
616MethodInfo GetRaiseMethod(bool nonPublic);
618MethodInfo GetAddMethod();
619MethodInfo GetRemoveMethod();
620MethodInfo GetRaiseMethod();
system\reflection\module.cs (10)
421public MethodInfo[] GetMethods()
426public virtual MethodInfo[] GetMethods(BindingFlags bindingFlags)
438public MethodInfo GetMethod(
457public MethodInfo GetMethod(String name, Type[] types)
475public MethodInfo GetMethod(String name)
485protected virtual MethodInfo GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder,
957protected override MethodInfo GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder,
963internal MethodInfo GetMethodInternal(String name, BindingFlags bindingAttr, Binder binder,
1172public override MethodInfo[] GetMethods(BindingFlags bindingFlags)
1175return new MethodInfo[0];
system\rttype.cs (37)
1429MethodInfo associateMethod = propertyInfo.GetGetMethod();
1813internal MethodInfo GetGenericMethodInfo(RuntimeMethodHandleInternal genericMethod)
2465MethodInfo methodInfo = memberInfo as MethodInfo;
2803private ListBuilder<MethodInfo> GetMethodCandidates(
2813ListBuilder<MethodInfo> candidates = new ListBuilder<MethodInfo>(cache.Length);
3052public override MethodInfo[] GetMethods(BindingFlags bindingAttr)
3120ListBuilder<MethodInfo> methods = GetMethodCandidates(null, bindingAttr, CallingConventions.Any, null, false);
3179im.InterfaceMethods = new MethodInfo[ifaceInstanceMethodCount];
3180im.TargetMethods = new MethodInfo[ifaceInstanceMethodCount];
3189im.InterfaceMethods[i] = (MethodInfo)ifaceMethodBase;
3202im.TargetMethods[i] = (MethodInfo)rtTypeMethodBase;
3210protected override MethodInfo GetMethodImpl(
3214ListBuilder<MethodInfo> candidates = GetMethodCandidates(name, bindingAttr, callConv, types, false);
3221MethodInfo firstCandidate = candidates[0];
3231MethodInfo methodInfo = candidates[j];
3239return System.DefaultBinder.FindMostDerivedNewSlotMeth(candidates.ToArray(), candidates.Count) as MethodInfo;
3246return binder.SelectMethod(bindingAttr, candidates.ToArray(), types, modifiers) as MethodInfo;
3462ListBuilder<MethodInfo> methods = new ListBuilder<MethodInfo>();
4829MethodInfo[] finalists = null;
4830MethodInfo finalist = null;
4836MethodInfo[] semiFinalists = GetMember(name, MemberTypes.Method, bindingFlags) as MethodInfo[];
4837List<MethodInfo> results = null;
4841MethodInfo semiFinalist = semiFinalists[i];
4855results = new List<MethodInfo>(semiFinalists.Length);
4866finalists = new MethodInfo[results.Count];
4880List<MethodInfo> results = null;
4884MethodInfo semiFinalist = null;
4909results = new List<MethodInfo>(semiFinalists.Length);
4920finalists = new MethodInfo[results.Count];
4942finalists = new MethodInfo[] { finalist };
4961Object result = ((MethodInfo)invokeMethod).Invoke(target, bindingFlags, binder, providedArgs, culture);
5618MethodInfo meth = (MethodInfo)reqMsg.GetMethodBase();
system\runtime\interopservices\tceadaptergen\eventproviderwriter.cs (23)
67MethodInfo[] aMethods = TCEAdapterGenerator.GetNonPropertyMethods(m_SrcItfType);
94private MethodBuilder DefineAddEventMethod( TypeBuilder OutputTypeBuilder, MethodInfo SrcItfMethod, Type SinkHelperClass, FieldBuilder fbSinkHelperArray, FieldBuilder fbEventCP, MethodBuilder mbInitSrcItf )
111MethodInfo CPAdviseMethod = typeof(IConnectionPoint).GetMethod( "Advise" );
117MethodInfo ArrayListAddMethod = typeof(ArrayList).GetMethod( "Add", aParamTypes, null );
121MethodInfo MonitorEnterMethod = typeof(Monitor).GetMethod( "Enter", MonitorEnterParamTypes, null );
126MethodInfo MonitorExitMethod = typeof(Monitor).GetMethod( "Exit", aParamTypes, null );
237private MethodBuilder DefineRemoveEventMethod( TypeBuilder OutputTypeBuilder, MethodInfo SrcItfMethod, Type SinkHelperClass, FieldBuilder fbSinkHelperArray, FieldBuilder fbEventCP )
252MethodInfo ArrayListRemoveMethod = typeof(ArrayList).GetMethod( "RemoveAt", aParamTypes, null );
258MethodInfo ArrayListItemGetMethod = ArrayListItemProperty.GetGetMethod();
264MethodInfo ArrayListSizeGetMethod = ArrayListSizeProperty.GetGetMethod();
269MethodInfo DelegateEqualsMethod = typeof(Delegate).GetMethod( "Equals", aParamTypes, null );
273MethodInfo MonitorEnterMethod = typeof(Monitor).GetMethod("Enter", MonitorEnterParamTypes, null);
278MethodInfo MonitorExitMethod = typeof(Monitor).GetMethod( "Exit", aParamTypes, null );
282MethodInfo CPUnadviseMethod = typeof(IConnectionPoint).GetMethod( "Unadvise" );
286MethodInfo ReleaseComObjectMethod = typeof(Marshal).GetMethod( "ReleaseComObject" );
479MethodInfo CPCFindCPMethod = typeof(IConnectionPointContainer).GetMethod( "FindConnectionPoint" );
593MethodInfo ArrayListItemGetMethod = ArrayListItemProperty.GetGetMethod();
599MethodInfo ArrayListSizeGetMethod = ArrayListSizeProperty.GetGetMethod();
603MethodInfo CPUnadviseMethod = typeof(IConnectionPoint).GetMethod( "Unadvise" );
607MethodInfo ReleaseComObjectMethod = typeof(Marshal).GetMethod( "ReleaseComObject" );
611MethodInfo MonitorEnterMethod = typeof(Monitor).GetMethod("Enter", MonitorEnterParamTypes, null);
617MethodInfo MonitorExitMethod = typeof(Monitor).GetMethod( "Exit", aParamTypes, null );
746MethodInfo SuppressFinalizeMethod = typeof(GC).GetMethod("SuppressFinalize");
system\runtime\interopservices\windowsruntime\windowsruntimemarshal.cs (5)
224ConditionalWeakTable<object, Dictionary<MethodInfo, Dictionary<object, EventRegistrationTokenList>>> s_eventRegistrations =
225new ConditionalWeakTable<object, Dictionary<MethodInfo, Dictionary<object, EventRegistrationTokenList>>>();
269Dictionary<MethodInfo, Dictionary<object, EventRegistrationTokenList>> instanceMap = null;
272instanceMap = new Dictionary<MethodInfo, Dictionary<object, EventRegistrationTokenList>>();
375internal MethodInfo method;
system\security\securityexception.cs (6)
88MethodInfo method = null;
272public SecurityException(string message, AssemblyName assemblyName, PermissionSet grant, PermissionSet refused, MethodInfo method, SecurityAction action, Object demanded, IPermission permThatFailed, Evidence evidence)
306public SecurityException(string message, Object deny, Object permitOnly, MethodInfo method, Object demanded, IPermission permThatFailed)
497private MethodInfo getMethod()
499return (MethodInfo)ByteArrayToObject(m_serializedMethodInfo);
503public MethodInfo Method