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)
21internal sealed partial class RuntimeConstructedGenericMethodInfo : RuntimeMethodInfo
System\Reflection\Runtime\MethodInfos\RuntimeNamedMethodInfo.cs (1)
19internal abstract class RuntimeNamedMethodInfo : RuntimeMethodInfo
System\Reflection\Runtime\MethodInfos\RuntimeSyntheticMethodInfo.cs (1)
20internal sealed partial class RuntimeSyntheticMethodInfo : RuntimeMethodInfo, IRuntimeMemberInfoWithNoMetadataDefinition
53 references to RuntimeMethodInfo
System.Private.CoreLib (53)
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)
61internal static IList<CustomAttributeData> GetCustomAttributesInternal(RuntimeMethodInfo target) 955internal static bool IsDefined(RuntimeMethodInfo method, RuntimeType caType, bool inherit) 1142internal static object[] GetCustomAttributes(RuntimeMethodInfo method, RuntimeType caType, bool inherit) 1148method = (method.GetGenericMethodDefinition() as RuntimeMethodInfo)!; 1540internal static void GetCustomAttributes(RuntimeMethodInfo method, RuntimeType caType, ref ListBuilder<Attribute> pcas) 1563internal static bool IsDefined(RuntimeMethodInfo method, RuntimeType? caType)
System\Reflection\MethodInvoker.cs (2)
19internal MethodInvoker(RuntimeMethodInfo method) 34if (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 (2)
208internal sealed override RuntimeParameterInfo[] GetRuntimeParameters(RuntimeMethodInfo contextMethod, out RuntimeParameterInfo returnParameter) 213internal sealed override RuntimeMethodInfo WithReflectedTypeSetToDeclaringType
System\Reflection\Runtime\MethodInfos\RuntimeDummyMethodInfo.cs (3)
42internal sealed override RuntimeParameterInfo[] GetRuntimeParameters(RuntimeMethodInfo contextMethod, out RuntimeParameterInfo returnParameter) { 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 (6)
21protected internal abstract string ComputeToString(RuntimeMethodInfo contextMethod); 135RuntimeMethodInfo methodInfo = (RuntimeMethodInfo)RuntimeConstructedGenericMethodInfo.GetRuntimeConstructedGenericMethodInfo(this, genericTypeArguments); 219protected internal sealed override string ComputeToString(RuntimeMethodInfo contextMethod) 232internal sealed override RuntimeParameterInfo[] GetRuntimeParameters(RuntimeMethodInfo contextMethod, out RuntimeParameterInfo returnParameter) 253internal sealed override RuntimeMethodInfo WithReflectedTypeSetToDeclaringType
System\Reflection\Runtime\MethodInfos\RuntimeSyntheticMethodInfo.cs (2)
192internal sealed override RuntimeParameterInfo[] GetRuntimeParameters(RuntimeMethodInfo contextMethod, out RuntimeParameterInfo returnParameter) 204internal sealed override RuntimeMethodInfo WithReflectedTypeSetToDeclaringType
System\Reflection\Runtime\PropertyInfos\RuntimePropertyInfo.cs (1)
82RuntimeMethodInfo 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\RuntimeMethodInfo.cs (7)
129internal RuntimeMethodInfo? GetParentDefinition() 130=> (RuntimeMethodInfo?)this.GetImplicitlyOverriddenBaseClassMember(); 149return ((RuntimeMethodInfo)method).WithReflectedTypeSetToDeclaringType; 273internal abstract RuntimeMethodInfo WithReflectedTypeSetToDeclaringType { get; } 282internal abstract RuntimeParameterInfo[] GetRuntimeParameters(RuntimeMethodInfo contextMethod, out RuntimeParameterInfo returnParameter); 340RuntimeMethodInfo invokeMethod = runtimeDelegateType.GetInvokeMethod(); 473protected RuntimeMethodInfo WithDebugName()