83 references to AssemblyFlags
Crossgen2Tasks (2)
PrepareForReadyToRunCompilation.cs (2)
482if ((assemblyRef.Flags & AssemblyFlags.WindowsRuntime) == AssemblyFlags.WindowsRuntime)
Microsoft.AspNetCore.Http.Extensions.Tests (10)
RequestDelegateFactoryTests.cs (6)
336new object[] { (Action<HttpContext, AssemblyFlags[]>)Store, new[] { "PublicKey,Retargetable" },new[] { AssemblyFlags.PublicKey | AssemblyFlags.Retargetable } }, 387new object[] { (Action<HttpContext, AssemblyFlags>)Store, "PublicKey,Retargetable", AssemblyFlags.PublicKey | AssemblyFlags.Retargetable },
RequestDelegateGenerator\RequestDelegateCreationTests.Arrays.cs (2)
143new object[] { "AssemblyFlags[]", new[] { "PublicKey,Retargetable" },new[] { AssemblyFlags.PublicKey | AssemblyFlags.Retargetable } },
RequestDelegateGenerator\RequestDelegateCreationTests.TryParse.cs (2)
54new object[] { "AssemblyFlags", "PublicKey,Retargetable", AssemblyFlags.PublicKey | AssemblyFlags.Retargetable },
Microsoft.CodeAnalysis (14)
MetadataReader\MetadataReaderExtensions.cs (4)
97AssemblyFlags flags, 120hasPublicKey = (flags & AssemblyFlags.PublicKey) != 0; 161isRetargetable: (flags & AssemblyFlags.Retargetable) != 0, 162contentType: (AssemblyContentType)((int)(flags & AssemblyFlags.ContentTypeMask) >> 9),
MetadataReference\AssemblyIdentityUtils.cs (2)
32AssemblyFlags flags = assemblyDefinition.Flags; 34bool hasPublicKey = (flags & AssemblyFlags.PublicKey) != 0;
PEWriter\MetadataWriter.cs (5)
1966flags: (AssemblyFlags)((int)identity.ContentType << 9) | (identity.IsRetargetable ? AssemblyFlags.Retargetable : 0), 1981var flags = sourceAssembly.AssemblyFlags & ~AssemblyFlags.PublicKey; 1985flags |= AssemblyFlags.PublicKey;
Symbols\Attributes\CommonAssemblyWellKnownAttributeData.cs (2)
278private AssemblyFlags _assemblyFlagsAttributeSetting; 279public AssemblyFlags AssemblyFlagsAttributeSetting
Symbols\ISourceAssemblySymbolInternal.cs (1)
11AssemblyFlags AssemblyFlags { get; }
Microsoft.CodeAnalysis.CodeStyle (2)
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (2)
32AssemblyFlags flags = assemblyDefinition.Flags; 34bool hasPublicKey = (flags & AssemblyFlags.PublicKey) != 0;
Microsoft.CodeAnalysis.CSharp (9)
Symbols\Source\SourceAssemblySymbol.cs (9)
456public AssemblyFlags AssemblyFlags 460var defaultValue = default(AssemblyFlags); 461var fieldValue = defaultValue; 2186isRetargetable: (AssemblyFlags & AssemblyFlags.Retargetable) == AssemblyFlags.Retargetable); 2481AssemblyFlags nameFlags; 2485nameFlags = (AssemblyFlags)(AssemblyNameFlags)value; 2489nameFlags = (AssemblyFlags)(uint)value;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenFunctionPointersTests.cs (2)
12616flags: default(AssemblyFlags), 12624flags: default(AssemblyFlags),
Microsoft.CodeAnalysis.VisualBasic (7)
Symbols\Source\SourceAssemblySymbol.vb (7)
694Public ReadOnly Property AssemblyFlags As AssemblyFlags Implements ISourceAssemblySymbolInternal.AssemblyFlags 696Dim fieldValue As AssemblyFlags = Nothing 1146Dim nameFlags As AssemblyFlags 1149nameFlags = CType(CType(value, AssemblyNameFlags), AssemblyFlags) 1151nameFlags = CType(CUInt(value), AssemblyFlags) 1756isRetargetable:=(AssemblyFlags And AssemblyFlags.Retargetable) = AssemblyFlags.Retargetable)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Attributes\AssemblyAttributes.vb (2)
1108Assert.Equal(AssemblyFlags.DisableJitCompileOptimizer Or AssemblyFlags.Retargetable, r.Flags)
Microsoft.CodeAnalysis.Workspaces (2)
src\Compilers\Core\Portable\MetadataReference\AssemblyIdentityUtils.cs (2)
32AssemblyFlags flags = assemblyDefinition.Flags; 34bool hasPublicKey = (flags & AssemblyFlags.PublicKey) != 0;
System.Reflection.Emit (7)
System\Reflection\Emit\ModuleBuilderImpl.cs (3)
849AssemblyFlags assemblyFlags = 0; 853assemblyFlags = AssemblyFlags.PublicKey; 984byte[]? publicKeyToken, AssemblyFlags assemblyFlags) =>
System\Reflection\Emit\PersistedAssemblyBuilder.cs (4)
159flags: AddContentType((AssemblyFlags)_assemblyName.Flags, _assemblyName.ContentType), 170private static AssemblyFlags AddContentType(AssemblyFlags flags, AssemblyContentType contentType) 171=> (AssemblyFlags)((int)contentType << 9) | flags;
System.Reflection.Metadata (21)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (2)
392AssemblyFlags flags, 423AssemblyFlags flags,
System\Reflection\Metadata\Internal\Tables.cs (4)
1923internal AssemblyFlags GetFlags() 1926return (AssemblyFlags)this.Block.PeekUInt32(_FlagsOffset); 2051internal AssemblyFlags GetFlags(int rowId) 2054return (AssemblyFlags)this.Block.PeekUInt32(rowOffset + _FlagsOffset);
System\Reflection\Metadata\MetadataReader.netstandard.cs (9)
14internal AssemblyName GetAssemblyName(StringHandle nameHandle, Version version, StringHandle cultureHandle, BlobHandle publicKeyOrTokenHandle, AssemblyHashAlgorithm assemblyHashAlgorithm, AssemblyFlags flags) 35bool hasPublicKey = (flags & AssemblyFlags.PublicKey) != 0; 104private static AssemblyNameFlags GetAssemblyNameFlags(AssemblyFlags flags) 108if ((flags & AssemblyFlags.PublicKey) != 0) 111if ((flags & AssemblyFlags.Retargetable) != 0) 114if ((flags & AssemblyFlags.EnableJitCompileTracking) != 0) 117if ((flags & AssemblyFlags.DisableJitCompileOptimizer) != 0) 123private static AssemblyContentType GetContentTypeFromAssemblyFlags(AssemblyFlags flags) 125return (AssemblyContentType)(((int)flags & (int)AssemblyFlags.ContentTypeMask) >> 9);
System\Reflection\Metadata\TypeSystem\AssemblyDefinition.cs (1)
34public AssemblyFlags Flags
System\Reflection\Metadata\TypeSystem\AssemblyDefinition.netstandard.cs (2)
10AssemblyFlags flags = Flags; 15flags |= AssemblyFlags.PublicKey;
System\Reflection\Metadata\TypeSystem\AssemblyReference.cs (3)
59public AssemblyFlags Flags 141private AssemblyFlags GetVirtualFlags() 195var hasFullKey = (_reader.AssemblyRefTable.GetFlags(_reader.WinMDMscorlibRef) & AssemblyFlags.PublicKey) != 0;
System.Reflection.MetadataLoadContext (5)
System\Reflection\TypeLoading\General\Ecma\EcmaHelpers.cs (3)
21AssemblyFlags flags = a.Flags; 23if ((flags & AssemblyFlags.PublicKey) != 0) 99public static AssemblyNameFlags ToAssemblyNameFlags(this AssemblyFlags flags) => (AssemblyNameFlags)flags;
System\Reflection\TypeLoading\General\Helpers.cs (2)
190public static AssemblyNameFlags ConvertAssemblyFlagsToAssemblyNameFlags(AssemblyFlags assemblyFlags) 194if ((assemblyFlags & AssemblyFlags.Retargetable) != 0)