38 references to Characteristics
Microsoft.CodeAnalysis (8)
Compilation\Compilation.cs (6)
2371private static Characteristics GetCharacteristics(OutputKind outputKind, bool requires32Bit) 2373var characteristics = Characteristics.ExecutableImage; 2379characteristics |= Characteristics.Bit32Machine; 2385characteristics |= Characteristics.LargeAddressAware; 2393characteristics |= Characteristics.Dll;
Emit\ModulePropertiesForSerialization.cs (2)
87public Characteristics ImageCharacteristics { get; } 129Characteristics imageCharacteristics,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (11)
CodeGen\CodeGenFunctionPointersTests.cs (1)
12747var peHeaderBuilder = new PEHeaderBuilder(imageCharacteristics: Characteristics.Dll);
Emit\CompilationEmitTests.cs (5)
3531Assert.False(peHeaders.CoffHeader.Characteristics.HasFlag(Characteristics.LargeAddressAware)); 3565Assert.True(peHeaders.CoffHeader.Characteristics.HasFlag(Characteristics.LargeAddressAware)); 3615Assert.True(peHeaders.CoffHeader.Characteristics.HasFlag(Characteristics.LargeAddressAware)); 3655Assert.True(peHeaders.CoffHeader.Characteristics.HasFlag(Characteristics.LargeAddressAware)); 3695Assert.True(peHeaders.CoffHeader.Characteristics.HasFlag(Characteristics.LargeAddressAware));
Emit\EmitMetadataTests.cs (5)
2351Assert.Equal(Characteristics.Dll | Characteristics.LargeAddressAware | Characteristics.ExecutableImage, coffHeader.Characteristics); 2489Assert.Equal(Characteristics.LargeAddressAware | Characteristics.ExecutableImage, coffHeader.Characteristics);
Microsoft.CodeAnalysis.Test.Utilities (1)
CommonTestBase.cs (1)
529imageCharacteristics: Characteristics.Dll,
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
Emit\CompilationEmitTests.vb (3)
2121Assert.True(peHeaders.CoffHeader.Characteristics.HasFlag(Characteristics.LargeAddressAware)) 2182Assert.True(peHeaders.CoffHeader.Characteristics.HasFlag(Characteristics.LargeAddressAware)) 2243Assert.True(peHeaders.CoffHeader.Characteristics.HasFlag(Characteristics.LargeAddressAware))
System.Reflection.Emit (2)
System\Reflection\Emit\PersistedAssemblyBuilder.cs (2)
58imageCharacteristics: Characteristics.ExecutableImage | Characteristics.Dll);
System.Reflection.Metadata (13)
System\Reflection\PortableExecutable\CoffHeader.cs (2)
44public Characteristics Characteristics { get; } 63Characteristics = (Characteristics)reader.ReadUInt16();
System\Reflection\PortableExecutable\ManagedTextSection.cs (3)
29public Characteristics ImageCharacteristics { get; } 65Characteristics imageCharacteristics, 100private ReadOnlySpan<byte> CorEntryPointName => (ImageCharacteristics & Characteristics.Dll) != 0 ? "_CorDllMain"u8 : "_CorExeMain"u8;
System\Reflection\PortableExecutable\PEHeaderBuilder.cs (6)
12public Characteristics ImageCharacteristics { get; } 61Characteristics imageCharacteristics = Characteristics.Dll, 100return new PEHeaderBuilder(imageCharacteristics: Characteristics.ExecutableImage); 105return new PEHeaderBuilder(imageCharacteristics: Characteristics.ExecutableImage | Characteristics.Dll);
System\Reflection\PortableExecutable\PEHeaders.cs (2)
217return (_coffHeader.Characteristics & Characteristics.Dll) != 0; 228return (_coffHeader.Characteristics & Characteristics.Dll) == 0;