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