830 references to TypeAttributes
Aspire.Hosting.RemoteHost.Tests (9)
dotnet-svcutil-lib (104)
ILAssembler (87)
GrammarVisitor.cs (78)
959public GrammarResult.Literal<(GrammarResult.Flag<TypeAttributes> Attribute, EntityRegistry.WellKnownBaseType? FallbackBase, bool RequireSealed)> VisitClassAttr(CILParser.ClassAttrContext context)
982return new((new((TypeAttributes)value, ShouldAppend: false), fallbackBase, requireSealed));
989return new((new(context.VALUE() is not null ? TypeAttributes.Sealed : 0), EntityRegistry.WellKnownBaseType.System_Enum, false));
994return new((new(TypeAttributes.Sealed), EntityRegistry.WellKnownBaseType.System_ValueType, true));
998return new((new(TypeAttributes.ExplicitLayout), null, false));
1003return new((new(TypeAttributes.Interface | TypeAttributes.Abstract), null, false));
1009return new((new(TypeAttributes.Public, TypeAttributes.VisibilityMask), null, false));
1011return new((new(TypeAttributes.NotPublic, TypeAttributes.VisibilityMask), null, false));
1013return new((new(TypeAttributes.NestedPublic, TypeAttributes.VisibilityMask), null, false));
1015return new((new(TypeAttributes.NestedPrivate, TypeAttributes.VisibilityMask), null, false));
1017return new((new(TypeAttributes.NestedFamily, TypeAttributes.VisibilityMask), null, false));
1019return new((new(TypeAttributes.NestedAssembly, TypeAttributes.VisibilityMask), null, false));
1021return new((new(TypeAttributes.NestedFamANDAssem, TypeAttributes.VisibilityMask), null, false));
1023return new((new(TypeAttributes.NestedFamORAssem, TypeAttributes.VisibilityMask), null, false));
1025return new((new(TypeAttributes.AnsiClass, TypeAttributes.StringFormatMask), null, false));
1027return new((new(TypeAttributes.AutoClass, TypeAttributes.StringFormatMask), null, false));
1029return new((new(TypeAttributes.UnicodeClass, TypeAttributes.StringFormatMask), null, false));
1031return new((new(TypeAttributes.AutoLayout, TypeAttributes.LayoutMask), null, false));
1033return new((new(TypeAttributes.SequentialLayout, TypeAttributes.LayoutMask), null, false));
1035return new((new(TypeAttributes.ExtendedLayout, TypeAttributes.LayoutMask), null, false));
1037return new((new(TypeAttributes.Sealed), null, false));
1039return new((new(TypeAttributes.Abstract), null, false));
1041return new((new(TypeAttributes.Import), null, false));
1044return new((new(TypeAttributes.Serializable), null, false));
1047return new((new(TypeAttributes.WindowsRuntime), null, false));
1049return new((new(TypeAttributes.BeforeFieldInit), null, false));
1051return new((new(TypeAttributes.SpecialName), null, false));
1053return new((new(TypeAttributes.RTSpecialName), null, false));
1055return new((new((TypeAttributes)Enum.Parse(typeof(TypeAttributes), context.GetText(), true)), null, false));
1331(TypeAttributes)0,
1345if (attribute.Value == TypeAttributes.RTSpecialName)
1350if ((attribute.Value & TypeAttributes.Interface) != 0)
1353return acc | TypeAttributes.Interface | TypeAttributes.Abstract;
1407if (newTypeDef.Attributes.HasFlag(TypeAttributes.Interface))
1416if (!newTypeDef.Attributes.HasFlag(TypeAttributes.Sealed) &&
1428newTypeDef.Attributes |= TypeAttributes.Sealed;
1444if ((attribute.Value & TypeAttributes.Interface) != 0)
1445return acc | TypeAttributes.Interface | TypeAttributes.Abstract;
2476public static GrammarResult.Flag<TypeAttributes> VisitExptAttr(CILParser.ExptAttrContext context)
2480"private" => new(TypeAttributes.NotPublic, TypeAttributes.VisibilityMask),
2481"public" => new(TypeAttributes.Public, TypeAttributes.VisibilityMask),
2482"forwarder" => new(TypeAttributes.Forwarder),
2483"nestedpublic" => new(TypeAttributes.NestedPublic, TypeAttributes.VisibilityMask),
2484"nestedprivate" => new(TypeAttributes.NestedPrivate, TypeAttributes.VisibilityMask),
2485"nestedfamily" => new(TypeAttributes.NestedFamily, TypeAttributes.VisibilityMask),
2486"nestedassembly" => new(TypeAttributes.NestedAssembly, TypeAttributes.VisibilityMask),
2487"nestedfamandassem" => new(TypeAttributes.NestedFamANDAssem, TypeAttributes.VisibilityMask),
2488"nestedfamorassem" => new(TypeAttributes.NestedFamORAssem, TypeAttributes.VisibilityMask),
2623public GrammarResult.Literal<(TypeAttributes attrs, string dottedName)> VisitExptypeHead(CILParser.ExptypeHeadContext context)
2625var attrs = context.exptAttr().Select(VisitExptAttr).Aggregate((TypeAttributes)0, (a, b) => a | b);
4394if (methodDefinition.MethodAttributes.HasFlag(MethodAttributes.Abstract) && !methodDefinition.ContainingType.Attributes.HasFlag(TypeAttributes.Abstract))
ILCompiler.Compiler (4)
ILCompiler.MetadataTransform (16)
ILCompiler.ReadyToRun (5)
ILCompiler.TypeSystem (36)
Microsoft.AspNetCore.SignalR.Core (1)
Microsoft.Build.Tasks.Core (4)
Microsoft.CodeAnalysis (66)
Microsoft.CodeAnalysis.CSharp (25)
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.VisualBasic (29)
Microsoft.CodeAnalysis.Workspaces (9)
Microsoft.CSharp (3)
Microsoft.Diagnostics.DataContractReader.Legacy (3)
Microsoft.DiaSymReader (12)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Microsoft.DiaSymReader.IMetadataImport.cs (4)
19public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, int, char*, int, int*, global::System.Reflection.TypeAttributes*, int*, int> GetTypeDefProps_12;
532int global::Microsoft.DiaSymReader.IMetadataImport.GetTypeDefProps(int typeDef, char* qualifiedName, int qualifiedNameBufferLength, int* qualifiedNameLength, global::System.Reflection.TypeAttributes* attributes, int* baseType)
535var __target = ((delegate* unmanaged[MemberFunction]<void*, int, char*, int, int*, global::System.Reflection.TypeAttributes*, int*, int> )__vtable[12]);
549internal static int ABI_GetTypeDefProps(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, int typeDef, char* qualifiedName, int qualifiedNameBufferLength, int* qualifiedNameLength, global::System.Reflection.TypeAttributes* attributes, int* baseType)
Microsoft.DotNet.GenFacades (1)
Microsoft.DotNet.PackageTesting (10)
Microsoft.DotNet.SharedFramework.Sdk (10)
Microsoft.Extensions.VectorData.Abstractions (1)
Microsoft.NET.HostModel (4)
mscorlib (1)
netstandard (1)
PresentationBuildTasks (11)
System.CodeDom (76)
System.ComponentModel.Composition (1)
System.ComponentModel.TypeConverter (2)
System.Linq.Expressions (6)
System.Management (5)
System.Private.CoreLib (107)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilder.cs (8)
155=> DefineNestedType(name, TypeAttributes.NestedPrivate, null, null);
157public TypeBuilder DefineNestedType(string name, TypeAttributes attr)
160public TypeBuilder DefineNestedType(string name, TypeAttributes attr,
164public TypeBuilder DefineNestedType(string name, TypeAttributes attr,
172protected abstract TypeBuilder DefineNestedTypeCore(string name, TypeAttributes attr,
175public TypeBuilder DefineNestedType(string name, TypeAttributes attr,
179public TypeBuilder DefineNestedType(string name, TypeAttributes attr,
183public TypeBuilder DefineNestedType(string name, TypeAttributes attr,
System.Private.Reflection.Execution (1)
System.Private.TypeLoader (4)
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.Windows.Forms (1)
System.Windows.Forms.Design (3)
System.Xaml (2)