1 type derived from RuntimeModule
mscorlib (1)
system\reflection\emit\modulebuilder.cs (1)
29
internal sealed class InternalModuleBuilder :
RuntimeModule
195 references to RuntimeModule
mscorlib (195)
system\exception.cs (2)
404
RuntimeModule
rtModule = module as
RuntimeModule
;
system\reflection\assembly.cs (11)
1527
RuntimeModule
[] modules = GetModulesInternal(true, false);
2222
RuntimeModule
retModule = null;
2262
RuntimeModule
m = (
RuntimeModule
)GetModule(name);
2285
fs[i] = new FileStream(((
RuntimeModule
)m[i]).GetFullyQualifiedName(),
2844
private
RuntimeModule
OnModuleResolveEvent(String moduleName)
2853
RuntimeModule
ret = (
RuntimeModule
)((ModuleResolveEventHandler) ds[i])(this, new ResolveEventArgs(moduleName,this));
3201
private
RuntimeModule
[] GetModulesInternal(bool loadIfNotFound,
3204
RuntimeModule
[] modules = null;
3226
internal static extern
RuntimeModule
GetManifestModule(RuntimeAssembly assembly);
system\reflection\ConstructorInfo.cs (1)
473
internal
RuntimeModule
GetRuntimeModule() { return RuntimeTypeHandle.GetModule(m_declaringType); }
system\reflection\customattribute.cs (28)
162
internal static IList<CustomAttributeData> GetCustomAttributesInternal(
RuntimeModule
target)
177
IList<CustomAttributeData> cad = GetCustomAttributes((
RuntimeModule
)target.ManifestModule, RuntimeAssembly.GetToken(target.GetNativeHandle()));
308
private static IList<CustomAttributeData> GetCustomAttributes(
RuntimeModule
module, int tkTarget)
322
internal unsafe static CustomAttributeRecord[] GetCustomAttributeRecords(
RuntimeModule
module, int targetToken)
356
private
RuntimeModule
m_scope;
370
private CustomAttributeData(
RuntimeModule
scope, CustomAttributeRecord caRecord)
798
private static RuntimeType ResolveType(
RuntimeModule
scope, string typeName)
847
internal CustomAttributeTypedArgument(
RuntimeModule
scope, CustomAttributeEncodedArgument encodedArg)
1029
RuntimeModule
customAttributeModule)
1313
return IsCustomAttributeDefined(assembly.ManifestModule as
RuntimeModule
, RuntimeAssembly.GetToken(assembly.GetNativeHandle()), caType);
1317
internal static bool IsDefined(
RuntimeModule
module, RuntimeType caType)
1563
object[] attributes = GetCustomAttributes(assembly.ManifestModule as
RuntimeModule
, assemblyToken, pcaCount, caType, isAssemblySecurityTransparent);
1569
internal static Object[] GetCustomAttributes(
RuntimeModule
module, RuntimeType caType)
1583
internal static bool IsAttributeDefined(
RuntimeModule
decoratedModule, int decoratedMetadataToken, int attributeCtorToken)
1590
RuntimeModule
decoratedModule, int decoratedMetadataToken, RuntimeType attributeFilterType)
1597
RuntimeModule
decoratedModule, int decoratedMetadataToken, RuntimeType attributeFilterType, int attributeCtorToken, bool mustBeInheritable)
1647
RuntimeModule
decoratedModule, int decoratedMetadataToken, int pcaCount, RuntimeType attributeFilterType, bool isDecoratedTargetSecurityTransparent)
1654
RuntimeModule
decoratedModule, int decoratedMetadataToken, int pcaCount,
1851
RuntimeModule
decoratedModule,
2014
RuntimeModule
decoratedModule = decoratedAttribute.GetRuntimeModule();
2063
private static unsafe extern Object _CreateCaObject(
RuntimeModule
pModule, IRuntimeMethodInfo pCtor, byte** ppBlob, byte* pEndBlob, int* pcNamedArgs);
2065
private static unsafe Object CreateCaObject(
RuntimeModule
module, IRuntimeMethodInfo ctor, ref IntPtr blob, IntPtr blobEnd, out int namedArgs)
2080
RuntimeModule
pModule, byte** ppBlobStart, byte* pBlobEnd, out string name, out bool bIsProperty, out RuntimeType type, out object value);
2083
RuntimeModule
module, ref IntPtr blobStart, IntPtr blobEnd, out string name, out bool isProperty, out RuntimeType type, out object value)
2114
unsafe private static extern void _GetSecurityAttributes(
RuntimeModule
module, int token, bool assembly, out object[] securityAttributes);
2116
unsafe internal static void GetSecurityAttributes(
RuntimeModule
module, int token, bool assembly, out object[] securityAttributes)
2424
internal static Attribute[] GetCustomAttributes(
RuntimeModule
module, RuntimeType caType, out int count)
2429
internal static bool IsDefined(
RuntimeModule
module, RuntimeType caType)
system\reflection\emit\assemblybuilder.cs (5)
183
private static extern
RuntimeModule
GetInMemoryAssemblyModule(RuntimeAssembly assembly);
194
private static extern
RuntimeModule
GetOnDiskAssemblyModule(RuntimeAssembly assembly);
1870
RuntimeModule
runtimeAssemblyModule = (assemblyModule != null) ? assemblyModule.ModuleHandle.GetRuntimeModule() : null;
2211
RuntimeModule
retModule = null;
2231
static private extern void PrepareForSavingManifestToDisk(RuntimeAssembly assembly,
RuntimeModule
assemblyModule); // module to contain assembly information if assembly is embedded
system\reflection\emit\dynamicilgenerator.cs (2)
42
internal void GetCallableMethod(
RuntimeModule
module, DynamicMethod dm)
1038
internal void GetCallableMethod(
RuntimeModule
module, DynamicMethod dm)
system\reflection\emit\dynamicmethod.cs (4)
35
private
RuntimeModule
m_module;
293
private static
RuntimeModule
GetDynamicMethodsModule()
447
RuntimeModule
rtModule;
452
rtModule = m as
RuntimeModule
;
system\reflection\emit\modulebuilder.cs (22)
168
private extern static int GetTypeRef(
RuntimeModule
module, String strFullName,
RuntimeModule
refedModule, String strRefedModuleFileName, int tkResolution);
174
private extern static int GetMemberRef(
RuntimeModule
module,
RuntimeModule
refedModule, int tr, int defToken);
186
private extern static int GetMemberRefFromSignature(
RuntimeModule
module, int tr, String methodName, byte[] signature, int length);
198
private extern static int GetMemberRefOfMethodInfo(
RuntimeModule
module, int tr, IRuntimeMethodInfo method);
236
private extern static int GetMemberRefOfFieldInfo(
RuntimeModule
module, int tkType, RuntimeTypeHandle declaringType, int tkField);
259
private extern static int GetTokenFromTypeSpec(
RuntimeModule
pModule, byte[] signature, int length);
271
private extern static int GetArrayMethodToken(
RuntimeModule
module, int tkTypeSpec, String methodName, byte[] signature, int sigLength);
277
private extern static int GetStringConstant(
RuntimeModule
module, String str, int length);
283
private extern static void PreSavePEFile(
RuntimeModule
module, int portableExecutableKind, int imageFileMachine);
289
private extern static void SavePEFile(
RuntimeModule
module, String fileName, int entryPoint, int isExe, bool isManifestFile);
296
RuntimeModule
module, String strName,
304
private extern static void SetModuleName(
RuntimeModule
module, String strModuleName);
310
internal extern static void SetFieldRVAContent(
RuntimeModule
module, int fdToken, byte[] data, int length);
317
private extern static void DefineNativeResourceFile(
RuntimeModule
module,
326
private extern static void DefineNativeResourceBytes(
RuntimeModule
module,
642
internal
RuntimeModule
GetNativeHandle()
647
private static
RuntimeModule
GetRuntimeModuleFromModule(Module m)
655
return m as
RuntimeModule
;
1757
Contract.Assert(refedModuleBuilder != null || refedModule is
RuntimeModule
);
1760
((
RuntimeModule
)refedModule).IsTransientInternal();
system\reflection\emit\typebuilder.cs (23)
183
private static extern void SetParentType(
RuntimeModule
module, int tdTypeDef, int tkParent);
189
private static extern void AddInterfaceImpl(
RuntimeModule
module, int tdTypeDef, int tkInterface);
197
internal static extern int DefineMethod(
RuntimeModule
module, int tkParent, String name, byte[] signature, int sigLength,
204
internal static extern int DefineMethodSpec(
RuntimeModule
module, int tkParent, byte[] signature, int sigLength);
210
internal static extern int DefineField(
RuntimeModule
module, int tkParent, String name, byte[] signature, int sigLength,
217
private static extern void SetMethodIL(
RuntimeModule
module, int tk, bool isInitLocals,
228
private static extern void DefineCustomAttribute(
RuntimeModule
module, int tkAssociate, int tkConstructor,
251
internal static extern void SetPInvokeData(
RuntimeModule
module, String DllName, String name, int token, int linkFlags);
257
internal static extern int DefineProperty(
RuntimeModule
module, int tkParent, String name, PropertyAttributes attributes,
264
internal static extern int DefineEvent(
RuntimeModule
module, int tkParent, String name, EventAttributes attributes, int tkEventType);
270
internal static extern void DefineMethodSemantics(
RuntimeModule
module, int tkAssociation,
277
internal static extern void DefineMethodImpl(
RuntimeModule
module, int tkType, int tkBody, int tkDecl);
283
internal static extern void SetMethodImpl(
RuntimeModule
module, int tkMethod, MethodImplAttributes MethodImplAttributes);
289
internal static extern int SetParamInfo(
RuntimeModule
module, int tkMethod, int iSequence,
296
internal static extern int GetTokenFromSig(
RuntimeModule
module, byte[] signature, int sigLength);
302
internal static extern void SetFieldLayoutOffset(
RuntimeModule
module, int fdToken, int iOffset);
308
internal static extern void SetClassLayout(
RuntimeModule
module, int tk, PackingSize iPackingSize, int iTypeSize);
314
internal static extern void SetFieldMarshal(
RuntimeModule
module, int tk, byte[] ubMarshal, int ubSize);
320
private static extern unsafe void SetConstantValue(
RuntimeModule
module, int tk, int corType, void* pValue);
327
internal static extern void AddDeclarativeSecurity(
RuntimeModule
module, int parent, SecurityAction action, byte[] blob, int cb);
945
private extern static int DefineType(
RuntimeModule
module,
952
private extern static int DefineGenericParam(
RuntimeModule
module,
959
private static extern void TermCreateClass(
RuntimeModule
module, int tk, ObjectHandleOnStack type);
system\reflection\eventinfo.cs (1)
376
internal
RuntimeModule
GetRuntimeModule() { return m_declaringType.GetRuntimeModule(); }
system\reflection\fieldinfo.cs (3)
292
internal abstract
RuntimeModule
GetRuntimeModule();
726
internal override
RuntimeModule
GetRuntimeModule()
884
internal override
RuntimeModule
GetRuntimeModule() { return m_declaringType.GetRuntimeModule(); }
system\reflection\methodinfo.cs (1)
561
internal
RuntimeModule
GetRuntimeModule() { return m_declaringType.GetRuntimeModule(); }
system\reflection\module.cs (45)
97
left is
RuntimeModule
|| right is
RuntimeModule
)
173
RuntimeModule
rtModule = this as
RuntimeModule
;
190
RuntimeModule
rtModule = this as
RuntimeModule
;
207
RuntimeModule
rtModule = this as
RuntimeModule
;
224
RuntimeModule
rtModule = this as
RuntimeModule
;
236
RuntimeModule
rtModule = this as
RuntimeModule
;
248
RuntimeModule
rtModule = this as
RuntimeModule
;
260
RuntimeModule
rtModule = this as
RuntimeModule
;
274
RuntimeModule
rtModule = this as
RuntimeModule
;
352
RuntimeModule
rtModule = this as
RuntimeModule
;
367
RuntimeModule
rtModule = this as
RuntimeModule
;
380
RuntimeModule
rtModule = this as
RuntimeModule
;
397
RuntimeModule
rtModule = this as
RuntimeModule
;
414
RuntimeModule
rtModule = this as
RuntimeModule
;
431
RuntimeModule
rtModule = this as
RuntimeModule
;
498
RuntimeModule
rtModule = this as
RuntimeModule
;
515
RuntimeModule
rtModule = this as
RuntimeModule
;
531
RuntimeModule
rtModule = this as
RuntimeModule
;
597
private extern static void GetType(
RuntimeModule
module, String className, bool ignoreCase, bool throwOnError, ObjectHandleOnStack type);
603
private static extern bool nIsTransientInternal(
RuntimeModule
module);
609
private extern static void GetScopeName(
RuntimeModule
module, StringHandleOnStack retString);
615
private extern static void GetFullyQualifiedName(
RuntimeModule
module, StringHandleOnStack retString);
620
private extern static RuntimeType[] GetTypes(
RuntimeModule
module);
631
private extern static bool IsResource(
RuntimeModule
module);
638
static private extern void GetSignerCertificate(
RuntimeModule
module, ObjectHandleOnStack retData);
995
return
RuntimeModule
.nIsTransientInternal(this.GetNativeHandle());
1232
internal
RuntimeModule
GetNativeHandle()
system\reflection\parameterinfo.cs (1)
692
internal
RuntimeModule
GetRuntimeModule()
system\reflection\propertyinfo.cs (1)
453
internal
RuntimeModule
GetRuntimeModule() { return m_declaringType.GetRuntimeModule(); }
system\rttype.cs (4)
1192
RuntimeModule
moduleHandle = RuntimeTypeHandle.GetModule(declaringType);
1379
RuntimeModule
declaringModuleHandle = RuntimeTypeHandle.GetModule(declaringType);
1982
internal static MethodBase GetMethodBase(
RuntimeModule
scope, int typeMetadataToken)
3550
internal
RuntimeModule
GetRuntimeModule()
system\runtime\compilerservices\runtimehelpers.cs (1)
81
private static extern void _RunModuleConstructor(System.Reflection.
RuntimeModule
module);
system\runtime\interopservices\attributes.cs (1)
554
internal static Attribute GetCustomAttribute(int token,
RuntimeModule
scope)
system\runtime\interopservices\marshal.cs (3)
1039
RuntimeModule
rtModule = m as
RuntimeModule
;
1057
private extern static IntPtr GetHINSTANCE(
RuntimeModule
m);
system\runtime\interopservices\typelibconverter.cs (2)
483
private static extern void nConvertTypeLibToMetadata(Object typeLib, RuntimeAssembly asmBldr,
RuntimeModule
modBldr, String nameSpace, TypeLibImporterFlags flags, ITypeLibImporterNotifySink notifySink, out ArrayList eventItfInfoList);
494
internal extern static void LoadInMemoryTypeByName(
RuntimeModule
module, String className);
system\runtime\remoting\soap.cs (2)
479
RuntimeModule
rtModule;
525
RuntimeModule
rtModule;
system\runtimehandles.cs (32)
278
internal extern static
RuntimeModule
GetModule(RuntimeType type);
642
private extern static void GetTypeByNameUsingCARules(string name,
RuntimeModule
scope, ObjectHandleOnStack type);
645
internal static RuntimeType GetTypeByNameUsingCARules(string name,
RuntimeModule
scope)
1150
internal unsafe extern static void CheckLinktimeDemands(IRuntimeMethodInfo method,
RuntimeModule
module, bool isDecoratedTargetSecurityTransparent);
1160
RuntimeModule
sourceModule);
1312
internal static extern bool _IsTokenSecurityTransparent(
RuntimeModule
module, int metaDataToken);
1789
internal static extern void CheckAttributeAccess(RuntimeFieldHandle fieldHandle,
RuntimeModule
decoratedTarget);
1840
private
RuntimeModule
m_ptr;
1844
internal ModuleHandle(
RuntimeModule
module)
1852
internal
RuntimeModule
GetRuntimeModule()
1897
internal static extern IRuntimeMethodInfo GetDynamicMethod(DynamicMethod method,
RuntimeModule
module, string name, byte[] sig, Resolver resolver);
1902
internal static extern int GetToken(
RuntimeModule
module);
1904
private static void ValidateModulePointer(
RuntimeModule
module)
1923
internal static RuntimeType ResolveTypeHandleInternal(
RuntimeModule
module, int typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
1948
private extern static void ResolveType(
RuntimeModule
module,
1959
internal static IRuntimeMethodInfo ResolveMethodHandleInternal(
RuntimeModule
module, int methodToken) { return ModuleHandle.ResolveMethodHandleInternal(module, methodToken, null, null); }
1966
internal static IRuntimeMethodInfo ResolveMethodHandleInternal(
RuntimeModule
module, int methodToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
1981
internal static RuntimeMethodHandleInternal ResolveMethodHandleInternalCore(
RuntimeModule
module, int methodToken, IntPtr[] typeInstantiationContext, int typeInstCount, IntPtr[] methodInstantiationContext, int methodInstCount)
1998
private extern static RuntimeMethodHandleInternal ResolveMethod(
RuntimeModule
module,
2012
internal static IRuntimeFieldInfo ResolveFieldHandleInternal(
RuntimeModule
module, int fieldToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
2038
private extern static void ResolveField(
RuntimeModule
module,
2050
private extern static bool _ContainsPropertyMatchingHash(
RuntimeModule
module, int propertyToken, uint hash);
2053
internal static bool ContainsPropertyMatchingHash(
RuntimeModule
module, int propertyToken, uint hash)
2062
private extern static void GetAssembly(
RuntimeModule
handle, ObjectHandleOnStack retAssembly);
2065
internal static RuntimeAssembly GetAssembly(
RuntimeModule
module)
2076
internal extern static void GetModuleType(
RuntimeModule
handle, ObjectHandleOnStack type);
2079
internal static RuntimeType GetModuleType(
RuntimeModule
module)
2090
private extern static void GetPEKind(
RuntimeModule
handle, out int peKind, out int machine);
2094
internal static void GetPEKind(
RuntimeModule
module, out PortableExecutableKinds peKind, out ImageFileMachine machine)
2105
internal extern static int GetMDStreamVersion(
RuntimeModule
module);
2116
private extern static IntPtr _GetMetadataImport(
RuntimeModule
module);
2119
internal static MetadataImport GetMetadataImport(
RuntimeModule
module)