1 instantiation of RuntimeMethodHandle
System.Private.CoreLib (1)
System\RuntimeMethodHandle.cs (1)
84public static RuntimeMethodHandle FromIntPtr(IntPtr value) => new RuntimeMethodHandle(value);
111 references to RuntimeMethodHandle
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\Extensions\ReflectionExtensions.cs (2)
183public static RuntimeMethodHandle MethodHandle(this MethodBase mb) 187public static RuntimeMethodHandle MethodHandle(this MethodInfo mi)
ILCompiler.Compiler (2)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (2)
43/// <item><see cref="System.Reflection.MethodBase.GetMethodFromHandle(System.RuntimeMethodHandle)"/></item> 44/// <item><see cref="System.Reflection.MethodBase.GetMethodFromHandle(System.RuntimeMethodHandle, System.RuntimeTypeHandle)"/></item>
illink (2)
ILLink.RoslynAnalyzer (2)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (2)
43/// <item><see cref="System.Reflection.MethodBase.GetMethodFromHandle(System.RuntimeMethodHandle)"/></item> 44/// <item><see cref="System.Reflection.MethodBase.GetMethodFromHandle(System.RuntimeMethodHandle, System.RuntimeTypeHandle)"/></item>
Microsoft.CodeAnalysis (1)
SpecialType.cs (1)
232/// Indicates that the type is <see cref="RuntimeMethodHandle"/>.
Microsoft.TestPlatform.AdapterUtilities (2)
Helpers\ReflectionHelpers.MethodBase.cs (1)
21internal static RuntimeMethodHandle GetMethodHandle(MethodBase method)
ManagedNameUtilities\ManagedNameHelper.Reflection.cs (1)
159var methodHandle = ReflectionHelpers.GetMethodHandle(method);
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
784[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.RuntimeMethodHandle))]
netstandard (1)
netstandard.cs (1)
1818[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.RuntimeMethodHandle))]
System.Linq.Expressions (2)
System\Linq\Expressions\Common\CachedReflectionInfo.cs (2)
24public static MethodInfo MethodBase_GetMethodFromHandle_RuntimeMethodHandle => field ??= typeof(MethodBase).GetMethod(nameof(MethodBase.GetMethodFromHandle), new[] { typeof(RuntimeMethodHandle) })!; 25public static MethodInfo MethodBase_GetMethodFromHandle_RuntimeMethodHandle_RuntimeTypeHandle => field ??= typeof(MethodBase).GetMethod(nameof(MethodBase.GetMethodFromHandle), new[] { typeof(RuntimeMethodHandle), typeof(RuntimeTypeHandle) })!;
System.Private.CoreLib (60)
Internal\Reflection\Augments\ReflectionAugments.cs (3)
113public static MethodBase GetMethodFromHandle(RuntimeMethodHandle runtimeMethodHandle) 131public static MethodBase GetMethodFromHandle(RuntimeMethodHandle runtimeMethodHandle, RuntimeTypeHandle declaringTypeHandle) 383public static IntPtr GetFunctionPointer(RuntimeMethodHandle runtimeMethodHandle, RuntimeTypeHandle declaringTypeHandle)
Internal\Reflection\Core\Execution\ExecutionEnvironment.cs (2)
63public abstract bool TryGetMethodFromHandle(RuntimeMethodHandle runtimeMethodHandle, out RuntimeTypeHandle declaringTypeHandle, out QMethodDefinition methodHandle, out RuntimeTypeHandle[] genericMethodTypeArgumentHandles); 64public abstract bool TryGetMethodFromHandleAndType(RuntimeMethodHandle runtimeMethodHandle, RuntimeTypeHandle declaringTypeHandle, out QMethodDefinition methodHandle, out RuntimeTypeHandle[] genericMethodTypeArgumentHandles);
Internal\Runtime\Augments\TypeLoaderCallbacks.cs (2)
22public abstract RuntimeMethodHandle GetRuntimeMethodHandleForComponents(RuntimeTypeHandle declaringTypeHandle, MethodHandle handle, RuntimeTypeHandle[] genericMethodArgs); 24public abstract IntPtr ResolveGenericVirtualMethodTarget(RuntimeTypeHandle targetTypeHandle, RuntimeMethodHandle declMethod);
Internal\Runtime\CompilerHelpers\LdTokenHelpers.cs (2)
13private static unsafe RuntimeMethodHandle GetRuntimeMethodHandle(IntPtr pHandleSignature) 15RuntimeMethodHandle returnValue;
Internal\Runtime\CompilerHelpers\ReflectionHelpers.cs (2)
37public static MethodBase GetCurrentMethodNonGeneric(RuntimeMethodHandle methodHandle) 43public static MethodBase GetCurrentMethodGeneric(RuntimeMethodHandle methodHandle, RuntimeTypeHandle typeHandle)
Internal\Runtime\CompilerServices\OpenMethodResolver.cs (4)
23private static delegate*<object, RuntimeMethodHandle, nint> s_lazyGvmLookupForSlot; 47public OpenMethodResolver(RuntimeTypeHandle declaringTypeOfSlot, RuntimeMethodHandle gvmSlot, GCHandle readerGCHandle, int handle) 91public RuntimeMethodHandle GVMMethodHandle 97return *(RuntimeMethodHandle*)pMethodHandle;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ConstructorOnTypeBuilderInstantiation.cs (1)
52public override RuntimeMethodHandle MethodHandle => _ctor.MethodHandle;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
56public override RuntimeMethodHandle MethodHandle => throw new NotSupportedException(SR.NotSupported_DynamicModule);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodOnTypeBuilderInstantiation.cs (1)
64public override RuntimeMethodHandle MethodHandle => _method.MethodHandle;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBase.cs (1)
59public abstract RuntimeMethodHandle MethodHandle { get; }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ObjectiveC\ObjectiveCMarshal.PlatformNotSupported.cs (2)
26/// unmanaged callback can be returned, otherwise <c>null</c>. The <see cref="RuntimeMethodHandle"/> is to the 36RuntimeMethodHandle lastMethod,
System\Delegate.cs (1)
144private void InitializeClosedInstanceWithGVMResolution(object firstParameter, RuntimeMethodHandle tokenOfGenericVirtualMethod)
System\ModuleHandle.cs (3)
49public RuntimeMethodHandle GetRuntimeMethodHandleFromMetadataToken(int methodToken) 91public RuntimeMethodHandle ResolveMethodHandle(int methodToken) 97public RuntimeMethodHandle ResolveMethodHandle(int methodToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
System\Reflection\Emit\DynamicILInfo.cs (2)
32public int GetTokenFor(RuntimeMethodHandle method) 40public int GetTokenFor(RuntimeMethodHandle method, RuntimeTypeHandle contextType)
System\Reflection\Emit\DynamicMethod.cs (1)
94public override RuntimeMethodHandle MethodHandle
System\Reflection\MethodBase.NativeAot.cs (2)
12public static MethodBase GetMethodFromHandle(RuntimeMethodHandle handle) => ReflectionAugments.GetMethodFromHandle(handle); 13public static MethodBase GetMethodFromHandle(RuntimeMethodHandle handle, RuntimeTypeHandle declaringType) => ReflectionAugments.GetMethodFromHandle(handle, declaringType);
System\Reflection\Runtime\MethodInfos\IRuntimeMethodCommon.cs (1)
65RuntimeMethodHandle GetRuntimeMethodHandle(Type[] genericArgs);
System\Reflection\Runtime\MethodInfos\NativeFormat\NativeFormatMethodCommon.cs (1)
188public RuntimeMethodHandle GetRuntimeMethodHandle(Type[] genericArgs)
System\Reflection\Runtime\MethodInfos\RuntimeConstructedGenericMethodInfo.cs (1)
171public sealed override RuntimeMethodHandle MethodHandle
System\Reflection\Runtime\MethodInfos\RuntimeConstructorInfo.cs (1)
153public abstract override RuntimeMethodHandle MethodHandle { get; }
System\Reflection\Runtime\MethodInfos\RuntimeDummyMethodInfo.cs (2)
41public sealed override RuntimeMethodHandle MethodHandle { get { throw NotImplemented.ByDesign; } } 50internal sealed override RuntimeMethodHandle GetRuntimeMethodHandle(Type[] genericArgs) { throw NotImplemented.ByDesign; }
System\Reflection\Runtime\MethodInfos\RuntimeMethodInfo.cs (1)
233public abstract override RuntimeMethodHandle MethodHandle { get; }
System\Reflection\Runtime\MethodInfos\RuntimeNamedMethodInfo.cs (3)
23internal abstract RuntimeMethodHandle GetRuntimeMethodHandle(Type[] methodArguments); 228public sealed override RuntimeMethodHandle MethodHandle => GetRuntimeMethodHandle(null); 318internal sealed override RuntimeMethodHandle GetRuntimeMethodHandle(Type[] genericArgs)
System\Reflection\Runtime\MethodInfos\RuntimePlainConstructorInfo.cs (1)
145public sealed override RuntimeMethodHandle MethodHandle => _common.GetRuntimeMethodHandle(null);
System\Reflection\Runtime\MethodInfos\RuntimeSyntheticConstructorInfo.cs (1)
134public sealed override RuntimeMethodHandle MethodHandle
System\Reflection\Runtime\MethodInfos\RuntimeSyntheticMethodInfo.cs (1)
166public sealed override RuntimeMethodHandle MethodHandle
System\Runtime\CompilerServices\RuntimeHelpers.NativeAot.cs (2)
216public static void PrepareMethod(RuntimeMethodHandle method) 222public static void PrepareMethod(RuntimeMethodHandle method, RuntimeTypeHandle[] instantiation)
System\Runtime\TypeLoaderExports.cs (5)
99public static unsafe IntPtr GVMLookupForSlot(object obj, RuntimeMethodHandle slot) 101if (TryGetFromCache((IntPtr)obj.GetMethodTable(), RuntimeMethodHandle.ToIntPtr(slot), out var v)) 107private static unsafe IntPtr GVMLookupForSlotSlow(object obj, RuntimeMethodHandle slot) 109Value v = CacheMiss((IntPtr)obj.GetMethodTable(), RuntimeMethodHandle.ToIntPtr(slot), 111=> RuntimeAugments.TypeLoaderCallbacks.ResolveGenericVirtualMethodTarget(new RuntimeTypeHandle((MethodTable*)context), *(RuntimeMethodHandle*)&signature));
System\RuntimeMethodHandle.cs (10)
18public struct RuntimeMethodHandle : IEquatable<RuntimeMethodHandle>, ISerializable 31if (!(obj is RuntimeMethodHandle)) 34return Equals((RuntimeMethodHandle)obj); 37public unsafe bool Equals(RuntimeMethodHandle handle) 84public static RuntimeMethodHandle FromIntPtr(IntPtr value) => new RuntimeMethodHandle(value); 86public static IntPtr ToIntPtr(RuntimeMethodHandle value) => value.Value; 88public static bool operator ==(RuntimeMethodHandle left, RuntimeMethodHandle right) 93public static bool operator !=(RuntimeMethodHandle left, RuntimeMethodHandle right)
System.Private.Reflection.Execution (2)
Internal\Reflection\Execution\ExecutionEnvironmentImplementation.MappingTables.cs (2)
798public sealed override unsafe bool TryGetMethodFromHandle(RuntimeMethodHandle runtimeMethodHandle, out RuntimeTypeHandle declaringTypeHandle, out QMethodDefinition methodHandle, out RuntimeTypeHandle[] genericMethodTypeArgumentHandles) 806public sealed override bool TryGetMethodFromHandleAndType(RuntimeMethodHandle runtimeMethodHandle, RuntimeTypeHandle declaringTypeHandle, out QMethodDefinition methodHandle, out RuntimeTypeHandle[] genericMethodTypeArgumentHandles)
System.Private.TypeLoader (19)
Internal\Runtime\TypeLoader\GenericDictionaryCell.cs (1)
334RuntimeMethodHandle handle = TypeLoaderEnvironment.Instance.GetRuntimeMethodHandleForComponents(
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.cs (2)
51public override RuntimeMethodHandle GetRuntimeMethodHandleForComponents(RuntimeTypeHandle declaringTypeHandle, MethodHandle handle, RuntimeTypeHandle[] genericMethodArgs) 61public override IntPtr ResolveGenericVirtualMethodTarget(RuntimeTypeHandle targetTypeHandle, RuntimeMethodHandle declMethod)
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.GVMResolution.cs (1)
122internal unsafe IntPtr ResolveGenericVirtualMethodTarget(RuntimeTypeHandle type, RuntimeMethodHandle slot)
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.LdTokenResultLookup.cs (9)
120private LowLevelDictionary<RuntimeMethodHandleKey, RuntimeMethodHandle> _runtimeMethodHandles = new LowLevelDictionary<RuntimeMethodHandleKey, RuntimeMethodHandle>(); 161public unsafe RuntimeMethodHandle GetRuntimeMethodHandleForComponents(RuntimeTypeHandle declaringTypeHandle, int handle, RuntimeTypeHandle[] genericMethodArgs, bool isAsyncVariant) 169public unsafe RuntimeMethodHandle GetRuntimeMethodHandleForComponents(RuntimeTypeHandle declaringTypeHandle, MethodHandle handle, RuntimeTypeHandle[] genericMethodArgs, bool isAsyncVariant) 175if (!_runtimeMethodHandles.TryGetValue(key, out RuntimeMethodHandle runtimeMethodHandle)) 194runtimeMethodHandle = RuntimeMethodHandle.FromIntPtr((nint)methodData); 203public MethodDesc GetMethodDescForRuntimeMethodHandle(TypeSystemContext context, RuntimeMethodHandle runtimeMethodHandle) 223public unsafe bool TryGetRuntimeMethodHandleComponents(RuntimeMethodHandle runtimeMethodHandle, out RuntimeTypeHandle declaringTypeHandle, out QMethodDefinition handle, out RuntimeTypeHandle[] genericMethodArgs) 236public unsafe bool TryGetRuntimeMethodHandleComponents(RuntimeMethodHandle runtimeMethodHandle, out RuntimeTypeHandle declaringTypeHandle, out MethodHandle handle, out RuntimeTypeHandle[] genericMethodArgs, out bool isAsyncVariant)
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.Metadata.cs (3)
494public RuntimeMethodHandle GVMHandle; 568RuntimeMethodHandle gvmSlot = TypeLoaderEnvironment.Instance.GetRuntimeMethodHandleForComponents(declaringTypeOfVirtualInvoke, token, genericArgs, isAsyncVariant: false); 587GVMHandle = default(RuntimeMethodHandle),
Internal\Runtime\TypeLoader\TypeLoaderTypeSystemContext.cs (1)
125return (DefType)ResolveRuntimeTypeHandle(typeof(RuntimeMethodHandle).TypeHandle);
Internal\Runtime\TypeLoader\TypeSystemExtensions.cs (2)
58public static unsafe bool IsDynamic(this RuntimeMethodHandle rtmh) 59=> (RuntimeMethodHandle.ToIntPtr(rtmh) & 1) != 0;
System.Reflection.Context (3)
System\Reflection\Context\Delegation\DelegatingConstructorInfo.cs (1)
69public override RuntimeMethodHandle MethodHandle
System\Reflection\Context\Delegation\DelegatingMethodInfo.cs (1)
71public override RuntimeMethodHandle MethodHandle
System\Reflection\Context\Virtual\VirtualMethodBase.cs (1)
41public override RuntimeMethodHandle MethodHandle
System.Reflection.Emit (4)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
56public override RuntimeMethodHandle MethodHandle => throw new NotSupportedException(SR.NotSupported_DynamicModule);
System\Reflection\Emit\ArrayMethod.cs (1)
68public override RuntimeMethodHandle MethodHandle => throw new NotSupportedException(SR.NotSupported_SymbolMethod);
System\Reflection\Emit\ConstructorBuilderImpl.cs (1)
74public override RuntimeMethodHandle MethodHandle => throw new NotSupportedException(SR.NotSupported_DynamicModule);
System\Reflection\Emit\MethodBuilderImpl.cs (1)
248public override RuntimeMethodHandle MethodHandle => throw new NotSupportedException(SR.NotSupported_DynamicModule);
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\Constructors\RoConstructor.cs (1)
81public sealed override RuntimeMethodHandle MethodHandle => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System\Reflection\TypeLoading\Methods\RoMethod.cs (1)
125public sealed override RuntimeMethodHandle MethodHandle => throw new InvalidOperationException(SR.Arg_InvalidOperation_Reflection);
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
748[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.RuntimeMethodHandle))]
System.Runtime.InteropServices.JavaScript (3)
System\Runtime\InteropServices\JavaScript\JSHostImplementation.cs (2)
212RuntimeMethodHandle methodHandle = GetMethodHandleFromIntPtr((IntPtr)ptr); 287public static RuntimeMethodHandle GetMethodHandleFromIntPtr(IntPtr ptr)
System\Runtime\InteropServices\JavaScript\JSHostImplementation.Types.cs (1)
60internal RuntimeMethodHandle methodHandle;
System.ServiceModel.Primitives (2)
Extensions\ReflectionExtensions.cs (2)
222public static RuntimeMethodHandle MethodHandle(this MethodBase mb) 226public static RuntimeMethodHandle MethodHandle(this MethodInfo mi)