777 references to TypeAttributes
dotnet-svcutil-lib (80)
Microsoft.AspNetCore.InternalTesting.Tests (1)
Microsoft.AspNetCore.SignalR.Core (1)
Microsoft.Build.Tasks.Core (4)
Microsoft.CodeAnalysis (60)
Microsoft.CodeAnalysis.CSharp (25)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (30)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (7)
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Microsoft.CodeAnalysis.Test.Utilities (31)
Microsoft.CodeAnalysis.VisualBasic (29)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (55)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces (7)
Microsoft.DotNet.GenFacades (1)
Microsoft.DotNet.PackageTesting (10)
Microsoft.DotNet.SharedFramework.Sdk (10)
Microsoft.VisualBasic.Core (4)
mscorlib (1)
netstandard (1)
PresentationBuildTasks (11)
Roslyn.Test.PdbUtilities (1)
SemanticSearch.BuildTask (11)
System.CodeDom (76)
System.ComponentModel.Composition (1)
System.ComponentModel.TypeConverter (2)
System.Linq.Expressions (6)
System.Private.CoreLib (121)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ModuleBuilder.cs (10)
22public EnumBuilder DefineEnum(string name, TypeAttributes visibility, Type underlyingType)
68protected abstract EnumBuilder DefineEnumCore(string name, TypeAttributes visibility, Type underlyingType);
117=> DefineType(name, TypeAttributes.NotPublic, null, null);
119public TypeBuilder DefineType(string name, TypeAttributes attr)
122public TypeBuilder DefineType(string name, TypeAttributes attr,
126public TypeBuilder DefineType(string name, TypeAttributes attr,
134public TypeBuilder DefineType(string name, TypeAttributes attr,
138public TypeBuilder DefineType(string name, TypeAttributes attr,
142public TypeBuilder DefineType(string name, TypeAttributes attr,
150protected abstract TypeBuilder DefineTypeCore(string name, TypeAttributes attr,
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilder.cs (8)
153=> DefineNestedType(name, TypeAttributes.NestedPrivate, null, null);
155public TypeBuilder DefineNestedType(string name, TypeAttributes attr)
158public TypeBuilder DefineNestedType(string name, TypeAttributes attr,
162public TypeBuilder DefineNestedType(string name, TypeAttributes attr,
170protected abstract TypeBuilder DefineNestedTypeCore(string name, TypeAttributes attr,
173public TypeBuilder DefineNestedType(string name, TypeAttributes attr,
177public TypeBuilder DefineNestedType(string name, TypeAttributes attr,
181public TypeBuilder DefineNestedType(string name, TypeAttributes attr,
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (47)
315private readonly TypeAttributes m_iAttr;
380string name, TypeAttributes attr, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type? parent, Type[]? interfaces, RuntimeModuleBuilder module,
401if (((attr & TypeAttributes.VisibilityMask) == TypeAttributes.Public) || ((attr & TypeAttributes.VisibilityMask) == TypeAttributes.NotPublic))
470TypeAttributes typeAttributes;
488typeAttributes = TypeAttributes.Public | TypeAttributes.ExplicitLayout | TypeAttributes.Class | TypeAttributes.Sealed | TypeAttributes.AnsiClass;
502private void VerifyTypeAttributes(TypeAttributes attr)
508if (((attr & TypeAttributes.VisibilityMask) != TypeAttributes.NotPublic) && ((attr & TypeAttributes.VisibilityMask) != TypeAttributes.Public))
516if (((attr & TypeAttributes.VisibilityMask) == TypeAttributes.NotPublic) || ((attr & TypeAttributes.VisibilityMask) == TypeAttributes.Public))
523if (((attr & TypeAttributes.LayoutMask) != TypeAttributes.AutoLayout) && ((attr & TypeAttributes.LayoutMask) != TypeAttributes.SequentialLayout) && ((attr & TypeAttributes.LayoutMask) != TypeAttributes.ExplicitLayout))
529if ((attr & TypeAttributes.ReservedMask) != 0)
544string fullname, int tkParent, TypeAttributes attributes, int tkEnclosingType, int[] interfaceTokens);
889protected override TypeAttributes GetAttributeFlagsImpl()
917return ((GetAttributeFlagsImpl() & TypeAttributes.Import) != 0) ? true : false;
1128if ((m_iAttr & TypeAttributes.ClassSemanticsMask) == TypeAttributes.Interface)
1221if ((m_iAttr & TypeAttributes.Interface) == TypeAttributes.Interface)
1289if ((m_iAttr & TypeAttributes.Interface) == TypeAttributes.Interface && (attributes & MethodAttributes.Static) != MethodAttributes.Static)
1332protected override TypeBuilder DefineNestedTypeCore(string name, TypeAttributes attr, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type? parent, Type[]? interfaces, PackingSize packSize, int typeSize)
1571if (m_constructorCount == 0 && ((m_iAttr & TypeAttributes.Interface) == 0) && !IsValueType && ((m_iAttr & (TypeAttributes.Abstract | TypeAttributes.Sealed)) != (TypeAttributes.Abstract | TypeAttributes.Sealed)))
1600if (((methodAttrs & MethodAttributes.Abstract) != 0) && ((m_iAttr & TypeAttributes.Abstract) == 0))
1698if ((m_iAttr & TypeAttributes.Interface) != TypeAttributes.Interface)
1704if ((m_iAttr & TypeAttributes.Abstract) == 0)
System.Private.Xml (15)
System.Reflection.Context (1)
System.Reflection.DispatchProxy (3)
System.Reflection.Emit (54)
System.Reflection.Metadata (44)
System.Reflection.MetadataLoadContext (40)
System.Reflection.Primitives (1)
System.Runtime (1)
System.Runtime.InteropServices (3)
System.Runtime.Serialization.Schema (4)
System.Text.RegularExpressions (6)
System.Windows.Forms (1)
System.Windows.Forms.Design (3)
System.Windows.Forms.Tests (1)
System.Xaml (2)