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