45 references to Sealed
dotnet-svcutil-lib (5)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGenerator.cs (2)
1390
if ((attributes & TypeAttributes.
Sealed
) == TypeAttributes.
Sealed
)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (2)
3217
if ((attributes & TypeAttributes.
Sealed
) == TypeAttributes.
Sealed
)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (1)
312
TypeAttributes.Public | TypeAttributes.
Sealed
| TypeAttributes.BeforeFieldInit,
Microsoft.CodeAnalysis (1)
PEWriter\MetadataWriter.cs (1)
1491
result |= 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 &&
1890
return (_flags & TypeAttributes.
Sealed
) != 0;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
Emit\NoPiaEmbedTypes.cs (3)
1210
Assert.Equal(TypeAttributes.Public | TypeAttributes.SequentialLayout | TypeAttributes.Class | TypeAttributes.
Sealed
| TypeAttributes.AnsiClass | TypeAttributes.BeforeFieldInit, test2.Flags);
1270
Assert.Equal(TypeAttributes.Public | TypeAttributes.AutoLayout | TypeAttributes.Class | TypeAttributes.
Sealed
| TypeAttributes.AnsiClass, test9.Flags);
1343
Assert.Equal(TypeAttributes.Public | TypeAttributes.AutoLayout | TypeAttributes.Class | TypeAttributes.
Sealed
| TypeAttributes.AnsiClass, test11.Flags);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\AttributeTests_StructLayout.cs (1)
173
bool isValueType = (type.Attributes & TypeAttributes.
Sealed
) != 0;
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\MemberInfo\TypeImpl.cs (1)
368
result |= System.Reflection.TypeAttributes.
Sealed
;
Microsoft.CodeAnalysis.Test.Utilities (1)
Platform\Custom\MetadataSignatureHelper.cs (1)
403
if ((attributes & TypeAttributes.
Sealed
) != 0)
Microsoft.CodeAnalysis.VisualBasic (3)
Symbols\Metadata\PE\PENamedTypeSymbol.vb (3)
879
(_flags And TypeAttributes.
Sealed
) = 0
891
Return (_flags And TypeAttributes.
Sealed
) <> 0
897
Return (_flags And TypeAttributes.
Sealed
) <> 0
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (4)
Attributes\AttributeTests_StructLayout.vb (1)
356
Dim isValueType As Boolean = (type.Attributes And TypeAttributes.
Sealed
) <> 0
Emit\NoPiaEmbedTypes.vb (3)
1034
Assert.Equal(TypeAttributes.Public Or TypeAttributes.SequentialLayout Or TypeAttributes.Class Or TypeAttributes.
Sealed
Or TypeAttributes.AnsiClass Or TypeAttributes.BeforeFieldInit, test2.TypeDefFlags)
1094
Assert.Equal(TypeAttributes.Public Or TypeAttributes.AutoLayout Or TypeAttributes.Class Or TypeAttributes.
Sealed
Or TypeAttributes.AnsiClass, test9.TypeDefFlags)
1168
Assert.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)
2756
ctdClass.TypeAttributes = TypeAttributes.Public | TypeAttributes.
Sealed
;
System.CodeDom (6)
Microsoft\CSharp\CSharpCodeGenerator.cs (2)
2358
if ((attributes & TypeAttributes.
Sealed
) == TypeAttributes.
Sealed
)
Microsoft\VisualBasic\VBCodeGenerator.cs (2)
736
if ((attributes & TypeAttributes.
Sealed
) == TypeAttributes.
Sealed
)
System\CodeDom\Compiler\CodeGenerator.cs (2)
1148
if ((attributes & TypeAttributes.
Sealed
) == TypeAttributes.
Sealed
)
System.Linq.Expressions (1)
System\Linq\Expressions\Compiler\AssemblyGen.cs (1)
72
TypeAttributes.Class | TypeAttributes.Public | TypeAttributes.
Sealed
| TypeAttributes.AnsiClass | TypeAttributes.AutoClass
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Type.cs (1)
99
public bool IsSealed => (GetAttributeFlagsImpl() & TypeAttributes.
Sealed
) != 0;
src\System\Reflection\Emit\RuntimeEnumBuilder.cs (1)
308
m_typeBuilder = new RuntimeTypeBuilder(name, visibility | TypeAttributes.
Sealed
, typeof(Enum), null, module, PackingSize.Unspecified, TypeBuilder.UnspecifiedTypeSize, null);
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (3)
488
typeAttributes = TypeAttributes.Public | TypeAttributes.ExplicitLayout | TypeAttributes.Class | TypeAttributes.
Sealed
| TypeAttributes.AnsiClass;
1571
if (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)
320
TypeAttributes.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
)))
445
TypeAttributes typeAttributes = TypeAttributes.Public | TypeAttributes.ExplicitLayout | TypeAttributes.Class | TypeAttributes.
Sealed
| TypeAttributes.AnsiClass;
System.Reflection.Metadata (1)
System\Reflection\Metadata\TypeSystem\TypeDefinition.cs (1)
232
flags |= TypeAttributes.WindowsRuntime | TypeAttributes.
Sealed
;
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoArrayType.cs (1)
70
protected 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)
250
attrs |= TypeAttributes.
Sealed
;