7 instantiations of ModuleHandle
mscorlib (7)
system\reflection\emit\modulebuilder.cs (1)
639
return new
ModuleHandle
(GetNativeHandle());
system\reflection\module.cs (1)
1229
return new
ModuleHandle
(this);
system\runtimehandles.cs (5)
284
return new
ModuleHandle
(RuntimeTypeHandle.GetModule(m_type));
1836
return new
ModuleHandle
();
1928
Environment.GetResourceString("Argument_InvalidToken", typeToken, new
ModuleHandle
(module)));
1986
Environment.GetResourceString("Argument_InvalidToken", methodToken, new
ModuleHandle
(module)));
2017
Environment.GetResourceString("Argument_InvalidToken", fieldToken, new
ModuleHandle
(module)));
41 references to ModuleHandle
mscorlib (41)
system\reflection\Associates.cs (1)
67
RuntimeMethodHandleInternal associateMethodHandle =
ModuleHandle
.ResolveMethodHandleInternalCore(RuntimeTypeHandle.GetModule(declaredType), tkMethod, genericArgumentHandles, genericArgumentCount, null, 0);
system\reflection\customattribute.cs (1)
1925
ctor =
ModuleHandle
.ResolveMethodHandleInternal(decoratedModule.GetNativeHandle(), caRecord.tkCtor);
system\reflection\emit\dynamicilgenerator.cs (2)
44
dm.m_methodHandle =
ModuleHandle
.GetDynamicMethod(dm,
1040
dm.m_methodHandle =
ModuleHandle
.GetDynamicMethod(dm,
system\reflection\emit\modulebuilder.cs (1)
637
internal override
ModuleHandle
GetModuleHandle()
system\reflection\module.cs (13)
541
public
ModuleHandle
ModuleHandle
551
internal virtual
ModuleHandle
GetModuleHandle()
553
return
ModuleHandle
.EmptyHandle;
722
IRuntimeMethodInfo methodHandle =
ModuleHandle
.ResolveMethodHandleInternal(GetNativeHandle(), tk, typeArgs, methodArgs);
806
fieldHandle =
ModuleHandle
.ResolveFieldHandleInternal(GetNativeHandle(), tk, typeArgs, methodArgs);
809
fieldHandle =
ModuleHandle
.ResolveFieldHandleInternal(GetNativeHandle(), metadataToken, typeArgs, methodArgs);
814
int tkDeclaringType =
ModuleHandle
.GetMetadataImport(GetNativeHandle()).GetParentToken(metadataToken);
931
ModuleHandle
.GetPEKind(GetNativeHandle(), out peKind, out machine);
939
return
ModuleHandle
.GetMDStreamVersion(GetNativeHandle());
986
m_runtimeType =
ModuleHandle
.GetModuleType(GetNativeHandle());
1005
return
ModuleHandle
.GetMetadataImport(GetNativeHandle());
1144
return
ModuleHandle
.GetToken(GetNativeHandle());
1227
internal override
ModuleHandle
GetModuleHandle()
system\rttype.cs (4)
1193
MetadataImport scope =
ModuleHandle
.GetMetadataImport(moduleHandle);
1204
nestedType =
ModuleHandle
.ResolveTypeHandleInternal(moduleHandle, tkNestedClasses[i], null, null);
1396
if (!
ModuleHandle
.ContainsPropertyMatchingHash(declaringModuleHandle, tkProperty, filter.GetHashToMatch()))
1984
return GetMethodBase(
ModuleHandle
.ResolveMethodHandleInternal(scope, typeMetadataToken));
system\runtime\compilerservices\runtimehelpers.cs (1)
83
public static void RunModuleConstructor(
ModuleHandle
module)
system\runtime\interopservices\attributes.cs (2)
561
ConstArray nativeType =
ModuleHandle
.GetMetadataImport(scope.GetNativeHandle()).GetFieldMarshal(token);
782
MetadataImport scope =
ModuleHandle
.GetMetadataImport(method.Module.ModuleHandle.GetRuntimeModule());
system\runtimehandles.cs (16)
282
public
ModuleHandle
GetModuleHandle()
1831
public static readonly
ModuleHandle
EmptyHandle = GetEmptyMH();
1834
unsafe static private
ModuleHandle
GetEmptyMH()
1870
if (!(obj is
ModuleHandle
))
1873
ModuleHandle
handle = (
ModuleHandle
)obj;
1879
public unsafe bool Equals(
ModuleHandle
handle)
1884
public static bool operator ==(
ModuleHandle
left,
ModuleHandle
right)
1889
public static bool operator !=(
ModuleHandle
left,
ModuleHandle
right)
1919
return new RuntimeTypeHandle(
ModuleHandle
.ResolveTypeHandleInternal(GetRuntimeModule(), typeToken, typeInstantiationContext, methodInstantiationContext));
1926
if (!
ModuleHandle
.GetMetadataImport(module).IsValidToken(typeToken))
1959
internal static IRuntimeMethodInfo ResolveMethodHandleInternal(RuntimeModule module, int methodToken) { return
ModuleHandle
.ResolveMethodHandleInternal(module, methodToken, null, null); }
1984
if (!
ModuleHandle
.GetMetadataImport(module.GetNativeHandle()).IsValidToken(methodToken))
2015
if (!
ModuleHandle
.GetMetadataImport(module.GetNativeHandle()).IsValidToken(fieldToken))