10 instantiations of ModuleHandle
System.Private.CoreLib (10)
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (1)
292
private protected override ModuleHandle GetModuleHandleImpl() => new
ModuleHandle
(InternalModule);
src\System\Reflection\RuntimeModule.cs (3)
106
ModuleHandle moduleHandle = new
ModuleHandle
(this);
179
ModuleHandle moduleHandle = new
ModuleHandle
(this);
518
return new
ModuleHandle
(this);
src\System\RuntimeHandles.cs (4)
408
return new
ModuleHandle
(GetModule(m_type));
1792
SR.Format(SR.Argument_InvalidToken, typeToken, new
ModuleHandle
(module)));
1845
SR.Format(SR.Argument_InvalidToken, methodToken, new
ModuleHandle
(module)));
1898
SR.Format(SR.Argument_InvalidToken, fieldToken, new
ModuleHandle
(module)));
src\System\RuntimeType.CoreCLR.cs (2)
1091
ModuleHandle moduleHandle = new
ModuleHandle
(RuntimeTypeHandle.GetModule(declaringType));
1793
return GetMethodBase(new
ModuleHandle
(scope).ResolveMethodHandle(typeMetadataToken).GetMethodInfo());
30 references to ModuleHandle
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
367
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.
ModuleHandle
))]
netstandard (1)
netstandard.cs (1)
1059
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.
ModuleHandle
))]
System.Private.CoreLib (27)
src\libraries\System.Private.CoreLib\src\System\Reflection\Module.cs (3)
27
public
ModuleHandle
ModuleHandle => GetModuleHandleImpl();
28
private protected virtual
ModuleHandle
GetModuleHandleImpl() =>
ModuleHandle
.EmptyHandle;
src\System\Reflection\Associates.cs (1)
66
RuntimeMethodHandleInternal associateMethodHandle =
ModuleHandle
.ResolveMethodHandleInternal(RuntimeTypeHandle.GetModule(declaredType), tkMethod, genericArgumentHandles, default);
src\System\Reflection\Emit\DynamicILGenerator.cs (2)
26
dm._methodHandle =
ModuleHandle
.GetDynamicMethod(
864
dm._methodHandle =
ModuleHandle
.GetDynamicMethod(
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (1)
292
private protected override
ModuleHandle
GetModuleHandleImpl() => new ModuleHandle(InternalModule);
src\System\Reflection\RuntimeModule.cs (7)
106
ModuleHandle
moduleHandle = new ModuleHandle(this);
179
ModuleHandle
moduleHandle = new ModuleHandle(this);
314
ModuleHandle
.GetPEKind(this, out peKind, out machine);
317
public override int MDStreamVersion =>
ModuleHandle
.GetMDStreamVersion(this);
347
internal RuntimeType RuntimeType => m_runtimeType ??=
ModuleHandle
.GetModuleType(this);
445
public override int MetadataToken =>
ModuleHandle
.GetToken(this);
516
private protected override
ModuleHandle
GetModuleHandleImpl()
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (1)
188
public static void RunModuleConstructor(
ModuleHandle
module)
src\System\RuntimeHandles.cs (11)
401
public
ModuleHandle
GetModuleHandle()
1663
public unsafe partial struct ModuleHandle : IEquatable<
ModuleHandle
>
1666
public static readonly
ModuleHandle
EmptyHandle;
1692
if (obj is not
ModuleHandle
)
1695
ModuleHandle
handle = (
ModuleHandle
)obj;
1700
public bool Equals(
ModuleHandle
handle)
1705
public static bool operator ==(
ModuleHandle
left,
ModuleHandle
right) => left.Equals(right);
1707
public static bool operator !=(
ModuleHandle
left,
ModuleHandle
right) => !left.Equals(right);
src\System\RuntimeType.CoreCLR.cs (1)
1091
ModuleHandle
moduleHandle = new ModuleHandle(RuntimeTypeHandle.GetModule(declaringType));
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
354
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.
ModuleHandle
))]