42 references to Sealed
dotnet-svcutil-lib (5)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGenerator.cs (2)
1390if ((attributes & TypeAttributes.Sealed) == TypeAttributes.Sealed)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (2)
3217if ((attributes & TypeAttributes.Sealed) == TypeAttributes.Sealed)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (1)
312TypeAttributes.Public | TypeAttributes.Sealed | TypeAttributes.BeforeFieldInit,
Microsoft.CodeAnalysis (1)
PEWriter\MetadataWriter.cs (1)
1491result |= TypeAttributes.Sealed;
Microsoft.CodeAnalysis.CSharp (4)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (4)
1853(_flags & TypeAttributes.Sealed) != 0 && 1864(_flags & TypeAttributes.Sealed) == 0; 1881(_flags & TypeAttributes.Sealed) != 0 && 1890return (_flags & TypeAttributes.Sealed) != 0;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\AttributeTests_StructLayout.cs (1)
173bool isValueType = (type.Attributes & TypeAttributes.Sealed) != 0;
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\MemberInfo\TypeImpl.cs (1)
368result |= System.Reflection.TypeAttributes.Sealed;
Microsoft.CodeAnalysis.Test.Utilities (1)
Platform\Custom\MetadataSignatureHelper.cs (1)
403if ((attributes & TypeAttributes.Sealed) != 0)
Microsoft.CodeAnalysis.VisualBasic (3)
Symbols\Metadata\PE\PENamedTypeSymbol.vb (3)
878(_flags And TypeAttributes.Sealed) = 0 890Return (_flags And TypeAttributes.Sealed) <> 0 896Return (_flags And TypeAttributes.Sealed) <> 0
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (4)
Attributes\AttributeTests_StructLayout.vb (1)
356Dim isValueType As Boolean = (type.Attributes And TypeAttributes.Sealed) <> 0
Emit\NoPiaEmbedTypes.vb (3)
1036Assert.Equal(TypeAttributes.Public Or TypeAttributes.SequentialLayout Or TypeAttributes.Class Or TypeAttributes.Sealed Or TypeAttributes.AnsiClass Or TypeAttributes.BeforeFieldInit, test2.TypeDefFlags) 1096Assert.Equal(TypeAttributes.Public Or TypeAttributes.AutoLayout Or TypeAttributes.Class Or TypeAttributes.Sealed Or TypeAttributes.AnsiClass, test9.TypeDefFlags) 1170Assert.Equal(TypeAttributes.Public Or TypeAttributes.AutoLayout Or TypeAttributes.Class Or TypeAttributes.Sealed Or TypeAttributes.AnsiClass, test11.TypeDefFlags)
Microsoft.CodeAnalysis.Workspaces (1)
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (1)
429(typeDefinition.Attributes & TypeAttributes.Sealed) != 0)
PresentationBuildTasks (1)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
2756ctdClass.TypeAttributes = TypeAttributes.Public | TypeAttributes.Sealed;
System.CodeDom (6)
Microsoft\CSharp\CSharpCodeGenerator.cs (2)
2358if ((attributes & TypeAttributes.Sealed) == TypeAttributes.Sealed)
Microsoft\VisualBasic\VBCodeGenerator.cs (2)
736if ((attributes & TypeAttributes.Sealed) == TypeAttributes.Sealed)
System\CodeDom\Compiler\CodeGenerator.cs (2)
1148if ((attributes & TypeAttributes.Sealed) == TypeAttributes.Sealed)
System.Linq.Expressions (1)
System\Linq\Expressions\Compiler\AssemblyGen.cs (1)
72TypeAttributes.Class | TypeAttributes.Public | TypeAttributes.Sealed | TypeAttributes.AnsiClass | TypeAttributes.AutoClass
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Type.cs (1)
99public bool IsSealed => (GetAttributeFlagsImpl() & TypeAttributes.Sealed) != 0;
src\System\Reflection\Emit\RuntimeEnumBuilder.cs (1)
308m_typeBuilder = new RuntimeTypeBuilder(name, visibility | TypeAttributes.Sealed, typeof(Enum), null, module, PackingSize.Unspecified, TypeBuilder.UnspecifiedTypeSize, null);
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (3)
488typeAttributes = TypeAttributes.Public | TypeAttributes.ExplicitLayout | TypeAttributes.Class | TypeAttributes.Sealed | TypeAttributes.AnsiClass; 1571if (m_constructorCount == 0 && ((m_iAttr & TypeAttributes.Interface) == 0) && !IsValueType && ((m_iAttr & (TypeAttributes.Abstract | TypeAttributes.Sealed)) != (TypeAttributes.Abstract | TypeAttributes.Sealed)))
System.Private.Xml (1)
System\Xml\Serialization\XmlSerializationILGen.cs (1)
320TypeAttributes.Public | TypeAttributes.Sealed | TypeAttributes.BeforeFieldInit,
System.Reflection.Emit (4)
System\Reflection\Emit\EnumBuilderImpl.cs (1)
19_typeBuilder = new TypeBuilderImpl(name, visibility | TypeAttributes.Sealed, typeof(Enum), module,
System\Reflection\Emit\TypeBuilderImpl.cs (3)
116((_attributes & (TypeAttributes.Abstract | TypeAttributes.Sealed)) != (TypeAttributes.Abstract | TypeAttributes.Sealed))) 456TypeAttributes typeAttributes = TypeAttributes.Public | TypeAttributes.ExplicitLayout | TypeAttributes.Class | TypeAttributes.Sealed | TypeAttributes.AnsiClass;
System.Reflection.Metadata (1)
System\Reflection\Metadata\TypeSystem\TypeDefinition.cs (1)
232flags |= TypeAttributes.WindowsRuntime | TypeAttributes.Sealed;
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoArrayType.cs (1)
70protected sealed override TypeAttributes ComputeAttributeFlags() => TypeAttributes.AutoLayout | TypeAttributes.AnsiClass | TypeAttributes.Class | TypeAttributes.Public | TypeAttributes.Sealed | TypeAttributes.Serializable;
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexAssemblyCompiler.cs (1)
250attrs |= TypeAttributes.Sealed;