1 write to m_assemblyData
mscorlib (1)
system\reflection\emit\assemblybuilder.cs (1)
437
m_assemblyData
= new AssemblyBuilderData(m_internalAssemblyBuilder,
137 references to m_assemblyData
mscorlib (137)
system\reflection\emit\assemblybuilder.cs (126)
237
foreach (ModuleBuilder modBuilder in
m_assemblyData
.m_moduleBuilderList)
441
m_assemblyData
.AddPermissionRequests(requiredPermissions,
646
Contract.Assert(
m_assemblyData
!= null, "m_assemblyData is null in DefineDynamicModuleInternal");
660
m_assemblyData
.CheckNameConflict(name);
758
m_assemblyData
.AddModule(dynModule);
869
if (
m_assemblyData
.m_access == AssemblyBuilderAccess.Run)
875
if (
m_assemblyData
.m_isSaved == true)
888
m_assemblyData
.CheckNameConflict(name);
889
m_assemblyData
.CheckFileNameConflict(fileName);
938
m_assemblyData
.AddModule(dynModule);
947
if (
m_assemblyData
.m_ISymWrapperAssembly != null)
948
return
m_assemblyData
.m_ISymWrapperAssembly;
953
m_assemblyData
.m_ISymWrapperAssembly = assem;
1048
m_assemblyData
.CheckResNameConflict(name);
1049
m_assemblyData
.CheckFileNameConflict(fileName);
1054
if (
m_assemblyData
.m_strDir == null)
1063
fullFileName = Path.Combine(
m_assemblyData
.m_strDir, fileName);
1072
m_assemblyData
.AddResWriter( new ResWriterData( resWriter, null, name, fileName, fullFileName, attribute) );
1138
m_assemblyData
.CheckResNameConflict(name);
1139
m_assemblyData
.CheckFileNameConflict(fileName);
1143
if (
m_assemblyData
.m_strDir == null)
1151
fullFileName = Path.Combine(
m_assemblyData
.m_strDir, fileName);
1164
m_assemblyData
.AddResWriter( new ResWriterData( null, null, name, fileName, fullFileName, attribute) );
1272
return
m_assemblyData
.m_entryPointMethod;
1444
if (
m_assemblyData
.m_strResourceFileName != null ||
1445
m_assemblyData
.m_resourceBytes != null ||
1446
m_assemblyData
.m_nativeVersion != null)
1449
m_assemblyData
.m_nativeVersion = new NativeVersionInfo();
1451
m_assemblyData
.m_nativeVersion.m_strCopyright = copyright;
1452
m_assemblyData
.m_nativeVersion.m_strTrademark = trademark;
1453
m_assemblyData
.m_nativeVersion.m_strCompany = company;
1454
m_assemblyData
.m_nativeVersion.m_strProduct = product;
1455
m_assemblyData
.m_nativeVersion.m_strProductVersion = productVersion;
1456
m_assemblyData
.m_hasUnmanagedVersionInfo = true;
1457
m_assemblyData
.m_OverrideUnmanagedVersionInfo = true;
1471
if (
m_assemblyData
.m_strResourceFileName != null ||
1472
m_assemblyData
.m_resourceBytes != null ||
1473
m_assemblyData
.m_nativeVersion != null)
1476
m_assemblyData
.m_hasUnmanagedVersionInfo = true;
1477
m_assemblyData
.m_nativeVersion = new NativeVersionInfo();
1494
if (
m_assemblyData
.m_strResourceFileName != null ||
1495
m_assemblyData
.m_resourceBytes != null ||
1496
m_assemblyData
.m_nativeVersion != null)
1499
m_assemblyData
.m_resourceBytes = new byte[resource.Length];
1500
System.Array.Copy(resource,
m_assemblyData
.m_resourceBytes, resource.Length);
1523
if (
m_assemblyData
.m_strResourceFileName != null ||
1524
m_assemblyData
.m_resourceBytes != null ||
1525
m_assemblyData
.m_nativeVersion != null)
1530
if (
m_assemblyData
.m_strDir == null)
1538
strFullFileName = Path.Combine(
m_assemblyData
.m_strDir, resourceFileName);
1547
m_assemblyData
.m_strResourceFileName = strFullFileName;
1577
int size =
m_assemblyData
.m_moduleBuilderList.Count;
1580
ModuleBuilder moduleBuilder = (ModuleBuilder)
m_assemblyData
.m_moduleBuilderList[i];
1631
m_assemblyData
.m_entryPointMethod = entryMethod;
1632
m_assemblyData
.m_peFileKind = fileKind;
1638
m_assemblyData
.m_entryPointModule = tmpMB;
1640
m_assemblyData
.m_entryPointModule = GetModuleBuilder((InternalModuleBuilder)tmpModule);
1642
MethodToken entryMethodToken =
m_assemblyData
.m_entryPointModule.GetMethodToken(entryMethod);
1643
m_assemblyData
.m_entryPointModule.SetEntryPoint(entryMethodToken);
1683
if (
m_assemblyData
.m_access != AssemblyBuilderAccess.Run)
1686
m_assemblyData
.AddCustomAttribute(con, binaryAttribute);
1716
if (
m_assemblyData
.m_access != AssemblyBuilderAccess.Run)
1718
m_assemblyData
.AddCustomAttribute(customBuilder);
1794
if (
m_assemblyData
.m_iCABuilder != 0)
1795
tkAttrs = new int[
m_assemblyData
.m_iCABuilder];
1796
if (
m_assemblyData
.m_iCAs != 0)
1797
tkAttrs2 = new int[
m_assemblyData
.m_iCAs];
1799
if (
m_assemblyData
.m_isSaved == true)
1806
if ((
m_assemblyData
.m_access & AssemblyBuilderAccess.Save) != AssemblyBuilderAccess.Save)
1812
assemblyModule =
m_assemblyData
.FindModuleWithFileName(assemblyFileName);
1828
m_assemblyData
.CheckFileNameConflict(assemblyFileName);
1831
if (
m_assemblyData
.m_strDir == null)
1834
m_assemblyData
.m_strDir = Environment.CurrentDirectory;
1836
else if (Directory.Exists(
m_assemblyData
.m_strDir) == false)
1839
m_assemblyData
.m_strDir));
1843
assemblyFileName = Path.Combine(
m_assemblyData
.m_strDir, assemblyFileName);
1858
for (i=0; i <
m_assemblyData
.m_iCABuilder; i++)
1860
tkAttrs[i] =
m_assemblyData
.m_CABuilders[i].PrepareCreateCustomAttributeToDisk(
1863
for (i=0; i <
m_assemblyData
.m_iCAs; i++)
1865
tkAttrs2[i] = assemblyModule.InternalGetConstructorToken(
m_assemblyData
.m_CACons[i], true).Token;
1880
if (
m_assemblyData
.m_strResourceFileName != null)
1881
onDiskAssemblyModule.DefineUnmanagedResourceFileInternalNoLock(
m_assemblyData
.m_strResourceFileName);
1882
else if (
m_assemblyData
.m_resourceBytes != null)
1883
onDiskAssemblyModule.DefineUnmanagedResourceInternalNoLock(
m_assemblyData
.m_resourceBytes);
1884
else if (
m_assemblyData
.m_hasUnmanagedVersionInfo == true)
1887
m_assemblyData
.FillUnmanagedVersionInfo();
1889
String strFileVersion =
m_assemblyData
.m_nativeVersion.m_strFileVersion;
1896
m_assemblyData
.m_nativeVersion.m_strTitle, // title
1898
m_assemblyData
.m_nativeVersion.m_strDescription, // description
1899
m_assemblyData
.m_nativeVersion.m_strCopyright,
1900
m_assemblyData
.m_nativeVersion.m_strTrademark,
1901
m_assemblyData
.m_nativeVersion.m_strCompany,
1902
m_assemblyData
.m_nativeVersion.m_strProduct,
1903
m_assemblyData
.m_nativeVersion.m_strProductVersion,
1905
m_assemblyData
.m_nativeVersion.m_lcid,
1906
m_assemblyData
.m_peFileKind == PEFileKinds.Dll,
1920
for (i=0; i <
m_assemblyData
.m_iCABuilder; i++)
1922
tkAttrs[i] =
m_assemblyData
.m_CABuilders[i].PrepareCreateCustomAttributeToDisk(
1925
for (i=0; i <
m_assemblyData
.m_iCAs; i++)
1927
tkAttrs2[i] = onDiskAssemblyModule.InternalGetConstructorToken(
m_assemblyData
.m_CACons[i], true).Token;
1937
size =
m_assemblyData
.m_moduleBuilderList.Count;
1940
ModuleBuilder mBuilder = (ModuleBuilder)
m_assemblyData
.m_moduleBuilderList[i];
1944
if (
m_assemblyData
.m_strDir != null)
1946
strModFileName = Path.Combine(
m_assemblyData
.m_strDir, strModFileName);
1965
for (i=0; i <
m_assemblyData
.m_iPublicComTypeCount; i++)
1967
type =
m_assemblyData
.m_publicComTypeList[i];
1996
for (i = 0; i <
m_assemblyData
.m_iCABuilder; i++)
1998
m_assemblyData
.m_CABuilders[i].CreateCustomAttribute(
2004
for (i = 0; i <
m_assemblyData
.m_iCAs; i++)
2010
m_assemblyData
.m_CABytes[i],
2017
if (
m_assemblyData
.m_RequiredPset != null)
2018
AddDeclarativeSecurity(
m_assemblyData
.m_RequiredPset, SecurityAction.RequestMinimum);
2020
if (
m_assemblyData
.m_RefusedPset != null)
2021
AddDeclarativeSecurity(
m_assemblyData
.m_RefusedPset, SecurityAction.RequestRefuse);
2023
if (
m_assemblyData
.m_OptionalPset != null)
2024
AddDeclarativeSecurity(
m_assemblyData
.m_OptionalPset, SecurityAction.RequestOptional);
2028
size =
m_assemblyData
.m_resWriterList.Count;
2035
tempRes = (ResWriterData)
m_assemblyData
.m_resWriterList[i];
2059
int entryPoint = (
m_assemblyData
.m_entryPointModule != null) ?
m_assemblyData
.m_entryPointModule.m_moduleData.FileToken : 0;
2061
SaveManifestToDisk(GetNativeHandle(), assemblyFileName, entryPoint, (int)
m_assemblyData
.m_peFileKind,
2074
if (
m_assemblyData
.m_entryPointModule != null &&
m_assemblyData
.m_entryPointModule != assemblyModule)
2075
assemblyModule.SetEntryPoint(new MethodToken(
m_assemblyData
.m_entryPointModule.m_moduleData.FileToken));
2078
m_assemblyData
.m_isSaved = true;
2104
if ((
m_assemblyData
.m_access & AssemblyBuilderAccess.Save) == AssemblyBuilderAccess.Save)
system\reflection\emit\modulebuilder.cs (7)
471
PEFileKinds pekind = isAssemblyFile ? ContainingAssemblyBuilder.
m_assemblyData
.m_peFileKind : PEFileKinds.Dll;
965
modList = ContainingAssemblyBuilder.
m_assemblyData
.m_moduleBuilderList;
997
if (ContainingAssemblyBuilder.
m_assemblyData
.m_strDir != null)
999
fullyQualifiedName = Path.Combine(ContainingAssemblyBuilder.
m_assemblyData
.m_strDir, fullyQualifiedName);
1003
if (ContainingAssemblyBuilder.
m_assemblyData
.m_strDir != null && fullyQualifiedName != null)
1319
m_assemblyBuilder.
m_assemblyData
.CheckResNameConflict(name);
1372
m_assemblyBuilder.
m_assemblyData
.CheckResNameConflict(name);
system\reflection\emit\typebuilder.cs (3)
639
containingAssem.
m_assemblyData
.CheckTypeNameConflict(fullname, enclosingType);
721
containingAssem.
m_assemblyData
.AddPublicComType(this);
2439
if (m_module.ContainingAssemblyBuilder.
m_assemblyData
.m_access == AssemblyBuilderAccess.Run)
system\runtime\interopservices\typelibconverter.cs (1)
356
AssemblyBuilderData AsmBldrData = asmBldr.
m_assemblyData
;