50 references to GetNativeHandle
mscorlib (50)
system\reflection\emit\constructorbuilder.cs (1)
249
TypeBuilder.AddDeclarativeSecurity(GetModuleBuilder().
GetNativeHandle
(), GetToken().Token, action, blob, blob.Length);
system\reflection\emit\eventbuilder.cs (1)
74
m_module.
GetNativeHandle
(),
system\reflection\emit\fieldbuilder.cs (4)
65
m_fieldTok = TypeBuilder.DefineField(m_typeBuilder.GetModuleBuilder().
GetNativeHandle
(),
77
ModuleBuilder.SetFieldRVAContent(m_typeBuilder.GetModuleBuilder().
GetNativeHandle
(), m_tkField.Token, data, size);
195
TypeBuilder.SetFieldLayoutOffset(m_typeBuilder.GetModuleBuilder().
GetNativeHandle
(), GetToken().Token, iOffset);
210
TypeBuilder.SetFieldMarshal(m_typeBuilder.GetModuleBuilder().
GetNativeHandle
(), GetToken().Token, ubMarshal, ubMarshal.Length);
system\reflection\emit\methodbuilder.cs (4)
786
int token = TypeBuilder.DefineMethod(m_module.
GetNativeHandle
(), m_containingType.MetadataTokenInternal, m_strName, sigBytes, sigLength, Attributes);
793
TypeBuilder.SetMethodImpl(m_module.
GetNativeHandle
(), token, m_dwMethodImplFlags);
953
TypeBuilder.AddDeclarativeSecurity(m_module.
GetNativeHandle
(), MetadataTokenInternal, action, blob, length);
1111
TypeBuilder.SetMethodImpl(m_module.
GetNativeHandle
(), MetadataTokenInternal, attributes);
system\reflection\emit\modulebuilder.cs (19)
179
return GetMemberRef(
GetNativeHandle
(), GetRuntimeModuleFromModule(refedModule).GetNativeHandle(), tr, defToken);
191
return GetMemberRefFromSignature(
GetNativeHandle
(), tr, methodName, signature, length);
213
return GetMemberRefOfMethodInfo(
GetNativeHandle
(), tr, method);
229
return GetMemberRefOfMethodInfo(
GetNativeHandle
(), tr, method);
252
return GetMemberRefOfFieldInfo(
GetNativeHandle
(), tkType, declaringType, runtimeField.MetadataToken);
264
return GetTokenFromTypeSpec(
GetNativeHandle
(), signature, length);
341
DefineNativeResourceFile(
GetNativeHandle
(),
348
DefineNativeResourceBytes(
GetNativeHandle
(),
431
PreSavePEFile(
GetNativeHandle
(), (int)portableExecutableKind, (int)imageFileMachine);
458
AddResource(
GetNativeHandle
(),
473
SavePEFile(
GetNativeHandle
(), fileName, m_EntryPoint.Token, (int)pekind, isAssemblyFile);
510
return GetTypeRef(
GetNativeHandle
(), typeName, GetRuntimeModuleFromModule(refedModule).GetNativeHandle(), strRefedModuleFileName, tkResolution);
608
ModuleBuilder.SetModuleName(
GetNativeHandle
(), name);
639
return new ModuleHandle(
GetNativeHandle
());
2010
tk = TypeBuilder.DefineMethodSpec(this.
GetNativeHandle
(), tk, sigBytes, sigLength);
2077
return new MethodToken(GetArrayMethodToken(
GetNativeHandle
(),
2215
return new StringToken(GetStringConstant(
GetNativeHandle
(), str, str.Length));
2235
return new SignatureToken(TypeBuilder.GetTokenFromSig(
GetNativeHandle
(), sigBytes, sigLength), this);
2247
return new SignatureToken(TypeBuilder.GetTokenFromSig(
GetNativeHandle
(), localSigBytes, sigLength), this);
system\reflection\emit\parameterbuilder.cs (2)
42
m_methodBuilder.GetModuleBuilder().
GetNativeHandle
(),
114
m_methodBuilder.GetModuleBuilder().
GetNativeHandle
(),
system\reflection\emit\propertybuilder.cs (1)
118
m_moduleBuilder.
GetNativeHandle
(),
system\reflection\emit\typebuilder.cs (17)
243
DefineCustomAttribute(module.
GetNativeHandle
(), tkAssociate, tkConstructor,
493
SetConstantValue(module.
GetNativeHandle
(), tk, (int)corType, pData);
500
SetConstantValue(module.
GetNativeHandle
(), tk, (int)CorElementType.String, pString);
506
SetConstantValue(module.
GetNativeHandle
(), tk, (int)CorElementType.I8, &ticks);
524
SetConstantValue(module.
GetNativeHandle
(), tk, (int)CorElementType.Class, null);
702
m_tdType = new TypeToken(DefineType(m_module.
GetNativeHandle
(),
708
SetClassLayout(GetModuleBuilder().
GetNativeHandle
(), m_tdType.Token, m_iPackingSize, m_iTypeSize);
846
SetPInvokeData(m_module.
GetNativeHandle
(),
1648
DefineMethodImpl(m_module.
GetNativeHandle
(), m_tdType.Token, tkBody.Token, tkDecl.Token);
2193
m_module.
GetNativeHandle
(),
2242
m_module.
GetNativeHandle
(),
2330
m_tdType = new TypeToken(DefineGenericParam(m_module.
GetNativeHandle
(),
2349
SetParentType(m_module.
GetNativeHandle
(), m_tdType.Token, tkParent);
2433
SetMethodIL(m_module.
GetNativeHandle
(), meth.GetToken().Token, meth.InitLocals,
2451
TermCreateClass(m_module.
GetNativeHandle
(), m_tdType.Token, JitHelpers.GetObjectHandleOnStack(ref cls));
2529
AddInterfaceImpl(m_module.
GetNativeHandle
(), m_tdType.Token, tkInterface.Token);
2574
AddDeclarativeSecurity(m_module.
GetNativeHandle
(), m_tdType.Token, action, blob, length);
system\runtime\interopservices\typelibconverter.cs (1)
553
LoadInMemoryTypeByName(m_Module.
GetNativeHandle
(), args.Name);