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