763 references to TypeAttributes
dotnet-svcutil-lib (104)
Microsoft.AspNetCore.InternalTesting.Tests (1)
Microsoft.AspNetCore.SignalR.Core (1)
Microsoft.CodeAnalysis (66)
Microsoft.CodeAnalysis.CSharp (25)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (33)
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.Workspaces (9)
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 (130)
LibraryImports.g.cs (2)
1126private static partial int DefineType(global::System.Runtime.CompilerServices.QCallModule module, string fullname, int tkParent, global::System.Reflection.TypeAttributes attributes, int tkEnclosingType, int[] interfaceTokens)
1139static extern unsafe int __PInvoke(global::System.Runtime.CompilerServices.QCallModule __module_native, ushort* __fullname_native, int __tkParent_native, global::System.Reflection.TypeAttributes __attributes_native, int __tkEnclosingType_native, int* __interfaceTokens_native);
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 (41)
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.ReservedMask) != 0)
538string fullname, int tkParent, TypeAttributes attributes, int tkEnclosingType, int[] interfaceTokens);
883protected override TypeAttributes GetAttributeFlagsImpl()
911return ((GetAttributeFlagsImpl() & TypeAttributes.Import) != 0) ? true : false;
1122if ((m_iAttr & TypeAttributes.ClassSemanticsMask) == TypeAttributes.Interface)
1215if ((m_iAttr & TypeAttributes.Interface) == TypeAttributes.Interface)
1283if ((m_iAttr & TypeAttributes.Interface) == TypeAttributes.Interface && (attributes & MethodAttributes.Static) != MethodAttributes.Static)
1326protected override TypeBuilder DefineNestedTypeCore(string name, TypeAttributes attr, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type? parent, Type[]? interfaces, PackingSize packSize, int typeSize)
1565if (m_constructorCount == 0 && ((m_iAttr & TypeAttributes.Interface) == 0) && !IsValueType && ((m_iAttr & (TypeAttributes.Abstract | TypeAttributes.Sealed)) != (TypeAttributes.Abstract | TypeAttributes.Sealed)))
1584if (((methodAttrs & MethodAttributes.Abstract) != 0) && ((m_iAttr & TypeAttributes.Abstract) == 0))
1678if ((m_iAttr & TypeAttributes.Interface) != TypeAttributes.Interface)
1684if ((m_iAttr & TypeAttributes.Abstract) == 0)
System.Private.Xml (15)
System.Reflection.Context (1)
System.Reflection.DispatchProxy (3)
System.Reflection.Emit (55)
System.Reflection.Metadata (44)
System.Reflection.MetadataLoadContext (42)
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)