5 types derived from RuntimeMethodInfo
System.Private.CoreLib (5)
System\Reflection\Runtime\General\Dispensers.cs (2)
142internal sealed partial class RuntimeConstructedGenericMethodInfo : RuntimeMethodInfo 153internal sealed partial class RuntimeSyntheticMethodInfo : RuntimeMethodInfo
System\Reflection\Runtime\MethodInfos\RuntimeConstructedGenericMethodInfo.cs (1)
20internal sealed partial class RuntimeConstructedGenericMethodInfo : RuntimeMethodInfo
System\Reflection\Runtime\MethodInfos\RuntimeNamedMethodInfo.cs (1)
18internal abstract class RuntimeNamedMethodInfo : RuntimeMethodInfo
System\Reflection\Runtime\MethodInfos\RuntimeSyntheticMethodInfo.cs (1)
19internal sealed partial class RuntimeSyntheticMethodInfo : RuntimeMethodInfo, IRuntimeMemberInfoWithNoMetadataDefinition
59 references to RuntimeMethodInfo
System.Private.CoreLib (59)
Internal\Reflection\Augments\ReflectionAugments.cs (8)
251if (!(method is RuntimeMethodInfo runtimeMethodInfo)) 285RuntimeMethodInfo runtimeMethodInfo = LookupMethodForCreateDelegate(runtimeDelegateTypeInfo, runtimeContainingType, method, isStatic: false, ignoreCase: ignoreCase); 315RuntimeMethodInfo runtimeMethodInfo = LookupMethodForCreateDelegate(runtimeDelegateTypeInfo, runtimeContainingType.GetRuntimeTypeInfo(), method, isStatic: true, ignoreCase: ignoreCase); 331private static RuntimeMethodInfo LookupMethodForCreateDelegate(RuntimeTypeInfo runtimeDelegateType, RuntimeTypeInfo containingType, string method, bool isStatic, bool ignoreCase) 348RuntimeMethodInfo invokeMethod = runtimeDelegateType.GetInvokeMethod(); 362return (RuntimeMethodInfo)methodInfo; // This cast is safe since we already verified that containingType is runtime implemented. 375case RuntimeMethodInfo methodInfo: 496RuntimeMethodInfo invokeMethod = runtimeType.GetInvokeMethod();
Internal\Reflection\Core\Execution\ExecutionEnvironment.cs (1)
119return ((RuntimeMethodInfo)methodInfo).MethodInvoker;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Attribute.cs (6)
227RuntimeMethodInfo? rtPropAccessor = propAccessor as RuntimeMethodInfo; 300RuntimeMethodInfo? rtAdd = add as RuntimeMethodInfo; 347RuntimeMethodInfo? rtMethod = param.Member as RuntimeMethodInfo;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\RuntimeCustomAttributeData.cs (6)
52internal static IList<CustomAttributeData> GetCustomAttributesInternal(RuntimeMethodInfo target) 871internal static bool IsDefined(RuntimeMethodInfo method, RuntimeType caType, bool inherit) 1014internal static object[] GetCustomAttributes(RuntimeMethodInfo method, RuntimeType caType, bool inherit) 1020method = (method.GetGenericMethodDefinition() as RuntimeMethodInfo)!; 1367internal static void GetCustomAttributes(RuntimeMethodInfo method, RuntimeType caType, ref ListBuilder<Attribute> pcas) 1390internal static bool IsDefined(RuntimeMethodInfo method, RuntimeType? caType)
System\Reflection\MethodInvoker.cs (2)
19internal MethodInvoker(RuntimeMethodInfo method) 35if (method is RuntimeMethodInfo rmi)
System\Reflection\Runtime\General\Dispensers.cs (2)
144internal static RuntimeMethodInfo GetRuntimeConstructedGenericMethodInfo(RuntimeNamedMethodInfo genericMethodDefinition, RuntimeTypeInfo[] genericTypeArguments) 155internal static RuntimeMethodInfo GetRuntimeSyntheticMethodInfo(SyntheticMethodId syntheticMethodId, string name, RuntimeArrayTypeInfo declaringType, RuntimeTypeInfo[] runtimeParameterTypes, RuntimeTypeInfo returnType, InvokerOptions options, CustomMethodInvokerAction action)
System\Reflection\Runtime\General\Helpers.cs (2)
117public static RuntimeMethodInfo GetInvokeMethod(this RuntimeTypeInfo delegateType) 128return (RuntimeMethodInfo)invokeMethod;
System\Reflection\Runtime\MethodInfos\RuntimeConstructedGenericMethodInfo.cs (3)
207internal sealed override RuntimeParameterInfo[] GetRuntimeParameters(RuntimeMethodInfo contextMethod) 212internal sealed override RuntimeParameterInfo GetRuntimeReturnParameter(RuntimeMethodInfo contextMethod) 217internal sealed override RuntimeMethodInfo WithReflectedTypeSetToDeclaringType
System\Reflection\Runtime\MethodInfos\RuntimeDummyMethodInfo.cs (4)
41internal sealed override RuntimeParameterInfo[] GetRuntimeParameters(RuntimeMethodInfo contextMethod) { throw NotImplemented.ByDesign; } 42internal sealed override RuntimeParameterInfo GetRuntimeReturnParameter(RuntimeMethodInfo contextMethod) { throw NotImplemented.ByDesign; } 47protected internal sealed override string ComputeToString(RuntimeMethodInfo contextMethod) { throw NotImplemented.ByDesign; } 50internal sealed override RuntimeMethodInfo WithReflectedTypeSetToDeclaringType { get { throw NotImplemented.ByDesign; } }
System\Reflection\Runtime\MethodInfos\RuntimeNamedMethodInfo.cs (7)
20protected internal abstract string ComputeToString(RuntimeMethodInfo contextMethod); 134RuntimeMethodInfo methodInfo = (RuntimeMethodInfo)RuntimeConstructedGenericMethodInfo.GetRuntimeConstructedGenericMethodInfo(this, genericTypeArguments); 218protected internal sealed override string ComputeToString(RuntimeMethodInfo contextMethod) 231internal sealed override RuntimeParameterInfo[] GetRuntimeParameters(RuntimeMethodInfo contextMethod) 236internal sealed override RuntimeParameterInfo GetRuntimeReturnParameter(RuntimeMethodInfo contextMethod) 257internal sealed override RuntimeMethodInfo WithReflectedTypeSetToDeclaringType
System\Reflection\Runtime\MethodInfos\RuntimeSyntheticMethodInfo.cs (3)
191internal sealed override RuntimeParameterInfo[] GetRuntimeParameters(RuntimeMethodInfo contextMethod) 202internal sealed override RuntimeParameterInfo GetRuntimeReturnParameter(RuntimeMethodInfo contextMethod) 207internal sealed override RuntimeMethodInfo WithReflectedTypeSetToDeclaringType
System\Reflection\Runtime\PropertyInfos\RuntimePropertyInfo.cs (1)
81RuntimeMethodInfo accessor = (useGetter ? Getter : Setter);
System\Reflection\Runtime\TypeInfos\RuntimeArrayTypeInfo.cs (1)
164internal sealed override IEnumerable<RuntimeMethodInfo> SyntheticMethods
System\Reflection\Runtime\TypeInfos\RuntimeTypeInfo.CoreGetDeclared.cs (2)
65Debug.Assert(object.ReferenceEquals(SyntheticMethods, Array.Empty<RuntimeMethodInfo>())); 75foreach (RuntimeMethodInfo syntheticMethod in SyntheticMethods)
System\Reflection\Runtime\TypeInfos\RuntimeTypeInfo.cs (2)
678internal virtual IEnumerable<RuntimeMethodInfo> SyntheticMethods 682return Array.Empty<RuntimeMethodInfo>();
System\Reflection\RuntimeCustomAttributeData.NativeAot.cs (1)
35public QCustomAttributeList(RuntimeMethodInfo target)
System\Reflection\RuntimeMethodInfo.cs (8)
128internal RuntimeMethodInfo? GetParentDefinition() 129=> (RuntimeMethodInfo?)this.GetImplicitlyOverriddenBaseClassMember(); 148return ((RuntimeMethodInfo)method).WithReflectedTypeSetToDeclaringType; 272internal abstract RuntimeMethodInfo WithReflectedTypeSetToDeclaringType { get; } 281internal abstract RuntimeParameterInfo[] GetRuntimeParameters(RuntimeMethodInfo contextMethod); 283internal abstract RuntimeParameterInfo GetRuntimeReturnParameter(RuntimeMethodInfo contextMethod); 327RuntimeMethodInfo invokeMethod = runtimeDelegateType.GetInvokeMethod(); 460protected RuntimeMethodInfo WithDebugName()