1 write to Flags
System.Reflection.Metadata (1)
System\Reflection\PortableExecutable\CorHeader.cs (1)
28Flags = (CorFlags)reader.ReadUInt32();
33 references to Flags
BuildValidator (1)
Util.cs (1)
95if ((peReader.PEHeaders.CorHeader.Flags & CorFlags.ILLibrary) == 0)
Crossgen2Tasks (2)
PrepareForReadyToRunCompilation.cs (2)
344if ((peReader.PEHeaders.CorHeader.Flags & CorFlags.ILLibrary) == 0) 390if ((pereader.PEHeaders.CorHeader.Flags & CorFlags.ILOnly) != CorFlags.ILOnly)
Microsoft.CodeAnalysis (1)
MetadataReader\PEModule.cs (1)
338return (_peReaderOpt.PEHeaders.CorHeader.Flags & CorFlags.Requires32Bit) != 0;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (8)
Emit\CompilationEmitTests.cs (6)
1950var flags = reader.PEHeaders.CorHeader.Flags; 3487Assert.Equal(CorFlags.ILOnly, peHeaders.CorHeader.Flags); 3491Assert.Equal(CorFlags.ILOnly | CorFlags.Requires32Bit, peHeaders.CorHeader.Flags); 3495Assert.Equal(CorFlags.ILOnly, peHeaders.CorHeader.Flags); 3503Assert.Equal(CorFlags.ILOnly | CorFlags.Requires32Bit | CorFlags.Prefers32Bit, peHeaders.CorHeader.Flags); 3509Assert.Equal(CorFlags.ILOnly, peHeaders.CorHeader.Flags);
Emit\EmitMetadataTests.cs (2)
2360Assert.Equal(CorFlags.ILOnly, corHeader.Flags); 2498Assert.Equal(CorFlags.ILOnly, corHeader.Flags);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
596var flags = reader.PEHeaders.CorHeader.Flags;
Microsoft.CodeAnalysis.Test.Utilities (1)
Metadata\ILValidation.cs (1)
51var flags = peHeaders.CorHeader.Flags;
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (12)
Attributes\InternalsVisibleToAndStrongNameTests.vb (8)
60Assert.Equal(expectedToBeSigned, headers.CorHeader.Flags.HasFlag(CorFlags.StrongNameSigned)) 394Assert.Equal(CorFlags.ILOnly, Metadata.Module.PEReaderOpt.PEHeaders.CorHeader.Flags) 427Assert.Equal(CorFlags.ILOnly Or CorFlags.StrongNameSigned, Metadata.Module.PEReaderOpt.PEHeaders.CorHeader.Flags) 1187Assert.Equal(CorFlags.StrongNameSigned, peHeaders.CorHeader.Flags And CorFlags.StrongNameSigned) 1368Assert.Equal(CorFlags.ILOnly, peHeaders.CorHeader.Flags) 1416Dim flags = metadata.Module.PEReaderOpt.PEHeaders.CorHeader.Flags 1759Assert.Equal(CorFlags.StrongNameSigned, peHeaders.CorHeader.Flags And CorFlags.StrongNameSigned) 1970Dim flags = reader.PEHeaders.CorHeader.Flags
Emit\CompilationEmitTests.vb (4)
2083Assert.Equal(CorFlags.ILOnly, peHeaders.CorHeader.Flags) 2087Assert.Equal(CorFlags.ILOnly Or CorFlags.Requires32Bit, peHeaders.CorHeader.Flags) 2091Assert.Equal(CorFlags.ILOnly, peHeaders.CorHeader.Flags) 2099Assert.Equal(CorFlags.ILOnly Or CorFlags.Requires32Bit Or CorFlags.Prefers32Bit, peHeaders.CorHeader.Flags)
Microsoft.DotNet.Arcade.Sdk (1)
src\SetCorFlags.cs (1)
83var newFlags = (reader.PEHeaders.CorHeader.Flags & ~removeFlags) | addFlags;
Microsoft.DotNet.SignTool (3)
src\ContentUtil.cs (2)
78return (header.Flags & CorFlags.StrongNameSigned) == CorFlags.StrongNameSigned; 104return ((int)peReader.PEHeaders.CorHeader.Flags & CROSSGEN_FLAG) == CROSSGEN_FLAG;
src\RealSignTool.cs (1)
94writer.Write((UInt32)(peReader.PEHeaders.CorHeader.Flags & ~CorFlags.StrongNameSigned));
System.Reflection.Metadata (1)
System\Reflection\PortableExecutable\ManagedTextSection.cs (1)
230/// <param name="corFlags">COR Flags (<see cref="CorHeader.Flags"/>).</param>
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.cs (2)
54if ((corHeader.Flags & CorFlags.NativeEntryPoint) != 0) 92CorFlags corFlags = peHeaders.CorHeader!.Flags;