4 instantiations of RuntimeMethodInfo
System.Private.CoreLib (4)
src\System\RuntimeType.CoreCLR.cs (4)
264new RuntimeMethodInfo(method, declaringType, m_runtimeTypeCache, methodAttributes, bindingFlags, null) 626RuntimeMethodInfo runtimeMethodInfo = new RuntimeMethodInfo( 738RuntimeMethodInfo runtimeMethodInfo = new RuntimeMethodInfo( 1666RuntimeMethodInfo rmi = new RuntimeMethodInfo(
97 references to RuntimeMethodInfo
System.Private.CoreLib (97)
src\libraries\System.Private.CoreLib\src\System\Reflection\InvokerEmitUtil.cs (1)
248if (method is RuntimeMethodInfo rmi)
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodInvoker.cs (2)
55if (method is RuntimeMethodInfo rmi) 287if (_method is RuntimeMethodInfo rmi)
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (2)
600if (!FilterApplyMethodInfo((RuntimeMethodInfo)semiFinalist, bindingFlags, CallingConventions.Any, new Type[argCnt])) 652if (!FilterApplyMethodInfo((RuntimeMethodInfo)semiFinalist, bindingFlags, CallingConventions.Any, new Type[argCnt]))
src\System\Attribute.CoreCLR.cs (6)
94RuntimeMethodInfo? rtPropAccessor = propAccessor as RuntimeMethodInfo; 167RuntimeMethodInfo? rtAdd = add as RuntimeMethodInfo; 214RuntimeMethodInfo? rtMethod = param.Member as RuntimeMethodInfo;
src\System\Delegate.CoreCLR.cs (5)
83RuntimeMethodInfo invoke = (RuntimeMethodInfo)RuntimeType.GetMethodBase((RuntimeType)this.GetType(), method)!; 304if (method is not RuntimeMethodInfo rmi) 339if (method is not RuntimeMethodInfo rmi) 395internal static Delegate? CreateDelegateInternal(RuntimeType rtType, RuntimeMethodInfo rtMethod, object? firstArgument, DelegateBindingFlags flags)
src\System\Reflection\Associates.cs (10)
40private static RuntimeMethodInfo? AssignAssociates( 103RuntimeMethodInfo? associateMethod = 104RuntimeType.GetMethodBase(reflectedType, associateMethodHandle) as RuntimeMethodInfo; 107return associateMethod ?? reflectedType.Module.ResolveMethod(tkMethod, null, null) as RuntimeMethodInfo; 115out RuntimeMethodInfo? addOn, 116out RuntimeMethodInfo? removeOn, 117out RuntimeMethodInfo? fireOn, 118out RuntimeMethodInfo? getter, 119out RuntimeMethodInfo? setter, 149RuntimeMethodInfo? associateMethod =
src\System\Reflection\Emit\DynamicILGenerator.cs (9)
64RuntimeMethodInfo rtMeth = meth as RuntimeMethodInfo ?? 405RuntimeMethodInfo? rtMeth = methodInfo as RuntimeMethodInfo; 521private int GetTokenFor(RuntimeMethodInfo rtMeth) 526private int GetTokenFor(RuntimeMethodInfo rtMeth, RuntimeType rtType) 536private int GetTokenForVarArgMethod(RuntimeMethodInfo rtMeth, SignatureHelper sig) 1096internal RuntimeMethodInfo? m_method; 1106internal VarArgMethod(RuntimeMethodInfo method, SignatureHelper signature)
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (4)
127private int GetMemberRefOfMethodInfo(int tr, RuntimeMethodInfo method) 413Debug.Assert(methodBase is RuntimeMethodInfo || methodBase is RuntimeConstructorInfo); 457Debug.Assert(method is RuntimeMethodInfo || method is RuntimeConstructorInfo); 1010else if (method is RuntimeMethodInfo rtMeth)
src\System\Reflection\LoaderAllocator.cs (2)
60internal CerHashtable<RuntimeMethodInfo, RuntimeMethodInfo> m_methodInstantiations;
src\System\Reflection\MethodBaseInvoker.CoreCLR.cs (1)
12internal unsafe MethodBaseInvoker(RuntimeMethodInfo method) : this(method, method.Signature.Arguments)
src\System\Reflection\MethodInvoker.CoreCLR.cs (1)
12private unsafe MethodInvoker(RuntimeMethodInfo method) : this(method, method.Signature.Arguments)
src\System\Reflection\RuntimeCustomAttributeData.cs (8)
38internal static IList<CustomAttributeData> GetCustomAttributesInternal(RuntimeMethodInfo target) 1145internal static bool IsDefined(RuntimeMethodInfo method, RuntimeType caType, bool inherit) 1288internal static object[] GetCustomAttributes(RuntimeMethodInfo method, RuntimeType caType, bool inherit) 1294method = (method.GetGenericMethodDefinition() as RuntimeMethodInfo)!; 1580RuntimeMethodInfo setMethod = property.GetSetMethod(true)!; 2027internal static void GetCustomAttributes(RuntimeMethodInfo method, RuntimeType caType, ref RuntimeType.ListBuilder<Attribute> pcas) 2047internal static bool IsDefined(RuntimeMethodInfo method, RuntimeType? caType) 2178private static DllImportAttribute? GetDllImportCustomAttribute(RuntimeMethodInfo method)
src\System\Reflection\RuntimeEventInfo.cs (3)
19private readonly RuntimeMethodInfo? m_addMethod; 20private readonly RuntimeMethodInfo? m_removeMethod; 21private readonly RuntimeMethodInfo? m_raiseMethod;
src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs (5)
85o is RuntimeMethodInfo m && m.m_handle == m_handle; 106internal RuntimeMethodInfo? GetParentDefinition() 121return (RuntimeMethodInfo?)RuntimeType.GetMethodBase(parent, RuntimeTypeHandle.GetMethodAt(parent, slot)); 165obj is RuntimeMethodInfo m && m_handle == m.m_handle && 216public sealed override bool HasSameMetadataDefinitionAs(MemberInfo other) => HasSameMetadataDefinitionAsCore<RuntimeMethodInfo>(other);
src\System\Reflection\RuntimeParameterInfo.cs (4)
16Debug.Assert(method is RuntimeMethodInfo || method is RuntimeConstructorInfo); 23Debug.Assert(method is RuntimeMethodInfo || method is RuntimeConstructorInfo); 419RuntimeMethodInfo? method = Member as RuntimeMethodInfo;
src\System\Reflection\RuntimePropertyInfo.cs (7)
21private readonly RuntimeMethodInfo? m_getterMethod; 22private readonly RuntimeMethodInfo? m_setterMethod; 251public override RuntimeMethodInfo? GetGetMethod(bool nonPublic) 259public override RuntimeMethodInfo? GetSetMethod(bool nonPublic) 281RuntimeMethodInfo? m = GetGetMethod(true); 336RuntimeMethodInfo m = GetGetMethod(true) ?? throw new ArgumentException(SR.Arg_GetMethNotFnd); 356RuntimeMethodInfo m = GetSetMethod(true) ?? throw new ArgumentException(SR.Arg_SetMethNotFnd);
src\System\Runtime\InteropServices\Marshal.CoreCLR.cs (1)
217if (m is not RuntimeMethodInfo rmi)
src\System\RuntimeHandles.cs (1)
857internal static bool SatisfiesConstraints(RuntimeType paramType, RuntimeType? typeContext, RuntimeMethodInfo? methodContext, RuntimeType toType)
src\System\RuntimeType.CoreCLR.cs (25)
230if (candidate is RuntimeMethodInfo candidateRMI && candidateRMI.MethodHandle.Value == method.Value) 262list = (T[])(object)new RuntimeMethodInfo[1] 577private unsafe RuntimeMethodInfo[] PopulateMethods(Filter filter) 579ListBuilder<RuntimeMethodInfo> list = default; 626RuntimeMethodInfo runtimeMethodInfo = new RuntimeMethodInfo( 738RuntimeMethodInfo runtimeMethodInfo = new RuntimeMethodInfo( 1356int slot = RuntimeMethodHandle.GetSlot((RuntimeMethodInfo)associateMethod); 1459private MemberInfoCache<RuntimeMethodInfo>? m_methodInfoCache; 1466private static CerHashtable<RuntimeMethodInfo, RuntimeMethodInfo> s_methodInstantiations; 1666RuntimeMethodInfo rmi = new RuntimeMethodInfo( 1670RuntimeMethodInfo crmi; 1716internal RuntimeMethodInfo[] GetMethodList(MemberListType listType, string? name) 2023RuntimeMethodInfo? methodContext = null; 2033methodContext = (RuntimeMethodInfo)definition; 2265RuntimeMethodInfo method, BindingFlags bindingFlags, CallingConventions callConv, Type[]? argumentTypes) 2531RuntimeMethodInfo[] cache = Cache.GetMethodList(listType, name); 2536RuntimeMethodInfo methodInfo = cache[i]; 2779Debug.Assert(ifaceMethodBase is RuntimeMethodInfo); 2799Debug.Assert(rtTypeMethodBase is null || rtTypeMethodBase is RuntimeMethodInfo); 2800RuntimeMethodInfo? targetMethod = (RuntimeMethodInfo?)rtTypeMethodBase; 3182private static RuntimeMethodInfo? GetMethodWithSameMetadataDefinitionAs(RuntimeType runtimeType, MemberInfo method) 3184RuntimeMethodInfo[] cache = runtimeType.Cache.GetMethodList(MemberListType.CaseSensitive, method.Name); 3188RuntimeMethodInfo candidate = cache[i];