394 references to TypeAttributes
Microsoft.Activities.Build (2)
Microsoft\Activities\Build\BeforeInitializeComponentExtension.cs (2)
151TypeAttributes = classData.IsPublic ? TypeAttributes.Public : TypeAttributes.NotPublic,
mscorlib (148)
system\reflection\Associates.cs (2)
96(RuntimeTypeHandle.GetAttributes(declaredType) & TypeAttributes.ClassSemanticsMask) == TypeAttributes.Class;
system\reflection\cominterfaces.cs (1)
124TypeAttributes Attributes { get; }
system\reflection\customattribute.cs (2)
1899if ((attributeType.Attributes & TypeAttributes.WindowsRuntime) == TypeAttributes.WindowsRuntime)
system\reflection\emit\assemblybuilder.cs (2)
2266TypeAttributes flags); 2276TypeAttributes flags);
system\reflection\emit\enumbuilder.cs (4)
235protected override TypeAttributes GetAttributeFlagsImpl() 407TypeAttributes visibility, // any bits on TypeAttributes.VisibilityMask) 411if ((visibility & ~TypeAttributes.VisibilityMask) != 0) 413m_typeBuilder = new TypeBuilder(name, visibility | TypeAttributes.Sealed, typeof(System.Enum), null, module, PackingSize.Unspecified, TypeBuilder.UnspecifiedTypeSize, null);
system\reflection\emit\generictypeparameterbuilder.cs (2)
159protected override TypeAttributes GetAttributeFlagsImpl() { return TypeAttributes.Public; }
system\reflection\emit\methodbuilder.cs (2)
143if ((type.Attributes & TypeAttributes.Interface) == TypeAttributes.Interface)
system\reflection\emit\modulebuilder.cs (11)
1143return DefineTypeNoLock(name, TypeAttributes.NotPublic, null, null, PackingSize.Unspecified, TypeBuilder.UnspecifiedTypeSize); 1148public TypeBuilder DefineType(String name, TypeAttributes attr) 1159public TypeBuilder DefineType(String name, TypeAttributes attr, Type parent) 1177public TypeBuilder DefineType(String name, TypeAttributes attr, Type parent, int typesize) 1192public TypeBuilder DefineType(String name, TypeAttributes attr, Type parent, PackingSize packingSize, int typesize) 1204public TypeBuilder DefineType(String name, TypeAttributes attr, Type parent, Type[] interfaces) 1215private TypeBuilder DefineTypeNoLock(String name, TypeAttributes attr, Type parent, Type[] interfaces, PackingSize packingSize, int typesize) 1227public TypeBuilder DefineType(String name, TypeAttributes attr, Type parent, PackingSize packsize) 1238private TypeBuilder DefineTypeNoLock(String name, TypeAttributes attr, Type parent, PackingSize packsize) 1252public EnumBuilder DefineEnum(String name, TypeAttributes visibility, Type underlyingType) 1273private EnumBuilder DefineEnumNoLock(String name, TypeAttributes visibility, Type underlyingType)
system\reflection\emit\symboltype.cs (1)
515protected override TypeAttributes GetAttributeFlagsImpl()
system\reflection\emit\typebuilder.cs (61)
344if ((type.Attributes & TypeAttributes.VisibilityMask) == TypeAttributes.NestedPublic) 352if ((type.Attributes & TypeAttributes.VisibilityMask) == TypeAttributes.Public) 539private TypeAttributes m_iAttr; 604TypeAttributes attr, 616private void Init(String fullname, TypeAttributes attr, Type parent, Type[] interfaces, ModuleBuilder module, 645if (((attr & TypeAttributes.VisibilityMask) == TypeAttributes.Public) ||((attr & TypeAttributes.VisibilityMask) == TypeAttributes.NotPublic)) 787if ((m_iAttr & TypeAttributes.ClassSemanticsMask) == TypeAttributes.Interface) 862TypeAttributes typeAttributes; 885typeAttributes = TypeAttributes.Public | TypeAttributes.ExplicitLayout | TypeAttributes.Class | TypeAttributes.Sealed | TypeAttributes.AnsiClass; 899private void VerifyTypeAttributes(TypeAttributes attr) 905if (((attr & TypeAttributes.VisibilityMask) != TypeAttributes.NotPublic) &&((attr & TypeAttributes.VisibilityMask) != TypeAttributes.Public)) 913if (((attr & TypeAttributes.VisibilityMask) == TypeAttributes.NotPublic) ||((attr & TypeAttributes.VisibilityMask) == TypeAttributes.Public)) 920if (((attr & TypeAttributes.LayoutMask) != TypeAttributes.AutoLayout) &&((attr & TypeAttributes.LayoutMask) != TypeAttributes.SequentialLayout) &&((attr & TypeAttributes.LayoutMask) != TypeAttributes.ExplicitLayout)) 926if ((attr & TypeAttributes.ReservedMask) != 0) 946String fullname, int tkParent, TypeAttributes attributes, int tkEnclosingType, int[] interfaceTokens); 1350protected override TypeAttributes GetAttributeFlagsImpl() 1374return((GetAttributeFlagsImpl() & TypeAttributes.Import) != 0) ? true : false; 1724if (((m_iAttr & TypeAttributes.ClassSemanticsMask) == TypeAttributes.Interface) && 1780if ((m_iAttr & TypeAttributes.Interface) == TypeAttributes.Interface) 1856if ((m_iAttr & TypeAttributes.Interface) == TypeAttributes.Interface && (attributes & MethodAttributes.Static) != MethodAttributes.Static) 1957return DefineNestedTypeNoLock(name, TypeAttributes.NestedPrivate, null, null, PackingSize.Unspecified, UnspecifiedTypeSize); 1963public TypeBuilder DefineNestedType(String name, TypeAttributes attr, Type parent, Type[] interfaces) 1976public TypeBuilder DefineNestedType(String name, TypeAttributes attr, Type parent) 1985public TypeBuilder DefineNestedType(String name, TypeAttributes attr) 1998public TypeBuilder DefineNestedType(String name, TypeAttributes attr, Type parent, int typeSize) 2011public TypeBuilder DefineNestedType(String name, TypeAttributes attr, Type parent, PackingSize packSize) 2024public TypeBuilder DefineNestedType(String name, TypeAttributes attr, Type parent, PackingSize packSize, int typeSize) 2033private TypeBuilder DefineNestedTypeNoLock(String name, TypeAttributes attr, Type parent, Type[] interfaces, PackingSize packSize, int typeSize) 2364if (m_constructorCount == 0 && ((m_iAttr & TypeAttributes.Interface) == 0) && !IsValueType && ((m_iAttr & (TypeAttributes.Abstract | TypeAttributes.Sealed)) != (TypeAttributes.Abstract | TypeAttributes.Sealed))) 2393if (((methodAttrs & MethodAttributes.Abstract) != 0) &&((m_iAttr & TypeAttributes.Abstract) == 0)) 2499if ((m_iAttr & TypeAttributes.Interface) != TypeAttributes.Interface) 2505if ((m_iAttr & TypeAttributes.Abstract) == 0)
system\reflection\emit\typebuilderinstantiation.cs (1)
193protected override TypeAttributes GetAttributeFlagsImpl() { return m_type.Attributes; }
system\reflection\typedelegator.cs (1)
185protected override TypeAttributes GetAttributeFlagsImpl()
system\rttype.cs (1)
3871protected override TypeAttributes GetAttributeFlagsImpl()
system\runtime\interopservices\attributes.cs (10)
643if ((type.Attributes & TypeAttributes.Import) == 0) 651return (type.Attributes & TypeAttributes.Import) != 0; 881switch (type.Attributes & TypeAttributes.LayoutMask) 883case TypeAttributes.ExplicitLayout: layoutKind = LayoutKind.Explicit; break; 884case TypeAttributes.AutoLayout: layoutKind = LayoutKind.Auto; break; 885case TypeAttributes.SequentialLayout: layoutKind = LayoutKind.Sequential; break; 890switch (type.Attributes & TypeAttributes.StringFormatMask) 892case TypeAttributes.AnsiClass: charSet = CharSet.Ansi; break; 893case TypeAttributes.AutoClass: charSet = CharSet.Auto; break; 894case TypeAttributes.UnicodeClass: charSet = CharSet.Unicode; break;
system\runtime\interopservices\tceadaptergen\eventproviderwriter.cs (2)
36TypeAttributes.Sealed | TypeAttributes.NotPublic,
system\runtime\interopservices\tceadaptergen\eventsinkhelperwriter.cs (2)
38TypeAttributes.Sealed | TypeAttributes.Public,
system\runtime\interopservices\tceadaptergen\tceadaptergenerator.cs (1)
59internal static TypeBuilder DefineUniqueType(String strInitFullName, TypeAttributes attrs, Type BaseType, Type[] aInterfaceTypes, ModuleBuilder mb)
system\runtimehandles.cs (1)
295internal extern static TypeAttributes GetAttributes(RuntimeType type);
system\serializableattribute.cs (2)
26return (type.Attributes & TypeAttributes.Serializable) == TypeAttributes.Serializable ? new SerializableAttribute() : null;
system\type.cs (39)
959public TypeAttributes Attributes { 1014get {return ((GetAttributeFlagsImpl() & TypeAttributes.VisibilityMask) == TypeAttributes.NotPublic);} 1019get {return ((GetAttributeFlagsImpl() & TypeAttributes.VisibilityMask) == TypeAttributes.Public);} 1024get {return ((GetAttributeFlagsImpl() & TypeAttributes.VisibilityMask) == TypeAttributes.NestedPublic);} 1029get {return ((GetAttributeFlagsImpl() & TypeAttributes.VisibilityMask) == TypeAttributes.NestedPrivate);} 1033get {return ((GetAttributeFlagsImpl() & TypeAttributes.VisibilityMask) == TypeAttributes.NestedFamily);} 1037get {return ((GetAttributeFlagsImpl() & TypeAttributes.VisibilityMask) == TypeAttributes.NestedAssembly);} 1041get {return ((GetAttributeFlagsImpl() & TypeAttributes.VisibilityMask) == TypeAttributes.NestedFamANDAssem);} 1045get {return ((GetAttributeFlagsImpl() & TypeAttributes.VisibilityMask) == TypeAttributes.NestedFamORAssem);} 1050get {return ((GetAttributeFlagsImpl() & TypeAttributes.LayoutMask) == TypeAttributes.AutoLayout);} 1054get {return ((GetAttributeFlagsImpl() & TypeAttributes.LayoutMask) == TypeAttributes.SequentialLayout);} 1058get {return ((GetAttributeFlagsImpl() & TypeAttributes.LayoutMask) == TypeAttributes.ExplicitLayout);} 1063get {return ((GetAttributeFlagsImpl() & TypeAttributes.ClassSemanticsMask) == TypeAttributes.Class && !IsValueType);} 1075return ((GetAttributeFlagsImpl() & TypeAttributes.ClassSemanticsMask) == TypeAttributes.Interface); 1086get { return ((GetAttributeFlagsImpl() & TypeAttributes.Abstract) != 0); } 1091get {return ((GetAttributeFlagsImpl() & TypeAttributes.Sealed) != 0);} 1109get {return ((GetAttributeFlagsImpl() & TypeAttributes.SpecialName) != 0);} 1114get {return ((GetAttributeFlagsImpl() & TypeAttributes.Import) != 0);} 1122if ((GetAttributeFlagsImpl() & TypeAttributes.Serializable) != 0) 1136get {return ((GetAttributeFlagsImpl() & TypeAttributes.StringFormatMask) == TypeAttributes.AnsiClass);} 1141get {return ((GetAttributeFlagsImpl() & TypeAttributes.StringFormatMask) == TypeAttributes.UnicodeClass);} 1146get {return ((GetAttributeFlagsImpl() & TypeAttributes.StringFormatMask) == TypeAttributes.AutoClass);} 1287abstract protected TypeAttributes GetAttributeFlagsImpl();
PresentationBuildTasks (11)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (11)
361get { return _ccRoot != null && _ccRoot.CodeClass.TypeAttributes == TypeAttributes.Public; } 1660private TypeAttributes GetTypeAttributes(ref string modifier) 1668TypeConverter converter = codeProvider.GetConverter(typeof(TypeAttributes)); 1675_privateClass = converter.ConvertToInvariantString(TypeAttributes.NotPublic).ToLowerInvariant(); 1676_publicClass = converter.ConvertToInvariantString(TypeAttributes.Public).ToLowerInvariant(); 1699return TypeAttributes.NotPublic; 1703return TypeAttributes.Public; 1713return TypeAttributes.Public; 2427if (TypeAttributes.Public == ctdClass.TypeAttributes) 2664ctdClass.TypeAttributes = TypeAttributes.Public | TypeAttributes.Sealed;
System (85)
compmod\microsoft\csharp\csharpcodeprovider.cs (24)
83else if (type == typeof(TypeAttributes)) { 2390switch (e.TypeAttributes & TypeAttributes.VisibilityMask) { 2391case TypeAttributes.Public: 2394case TypeAttributes.NotPublic: 2781TypeAttributes attributes = e.TypeAttributes; 2782switch(attributes & TypeAttributes.VisibilityMask) { 2783case TypeAttributes.Public: 2784case TypeAttributes.NestedPublic: 2787case TypeAttributes.NestedPrivate: 2790case TypeAttributes.NestedFamily: 2793case TypeAttributes.NotPublic: 2794case TypeAttributes.NestedAssembly: 2795case TypeAttributes.NestedFamANDAssem: 2798case TypeAttributes.NestedFamORAssem: 2813switch (attributes & TypeAttributes.ClassSemanticsMask) { 2814case TypeAttributes.Class: 2815if ((attributes & TypeAttributes.Sealed) == TypeAttributes.Sealed) { 2818if ((attributes & TypeAttributes.Abstract) == TypeAttributes.Abstract) { 2828case TypeAttributes.Interface: 4034(object)TypeAttributes.Public, 4035(object)TypeAttributes.NotPublic 4045return TypeAttributes.NotPublic;
compmod\microsoft\visualbasic\VBCodeProvider.cs (24)
91else if(type == typeof(TypeAttributes)) { 932TypeAttributes attributes = e.TypeAttributes; 938switch(attributes & TypeAttributes.VisibilityMask) { 939case TypeAttributes.Public: 940case TypeAttributes.NestedPublic: 943case TypeAttributes.NestedPrivate: 947case TypeAttributes.NestedFamily: 950case TypeAttributes.NotPublic: 951case TypeAttributes.NestedAssembly: 952case TypeAttributes.NestedFamANDAssem: 955case TypeAttributes.NestedFamORAssem: 968switch (attributes & TypeAttributes.ClassSemanticsMask) { 969case TypeAttributes.Class: 976if ((attributes & TypeAttributes.Sealed) == TypeAttributes.Sealed) { 979if ((attributes & TypeAttributes.Abstract) == TypeAttributes.Abstract) { 985case TypeAttributes.Interface: 2176switch (e.TypeAttributes & TypeAttributes.VisibilityMask) { 2177case TypeAttributes.Public: 2180case TypeAttributes.NotPublic: 3084(object)TypeAttributes.Public, 3085(object)TypeAttributes.NotPublic 3095return TypeAttributes.Public;
compmod\system\codedom\CodeTypeDeclaration.cs (15)
33private TypeAttributes attributes = Reflection.TypeAttributes.Public | Reflection.TypeAttributes.Class; 87public TypeAttributes TypeAttributes { 120return(attributes & TypeAttributes.ClassSemanticsMask) == TypeAttributes.Class && !isEnum && !isStruct; 124attributes &= ~TypeAttributes.ClassSemanticsMask; 125attributes |= TypeAttributes.Class; 144attributes &= ~TypeAttributes.ClassSemanticsMask; 166attributes &= ~TypeAttributes.ClassSemanticsMask; 184return(attributes & TypeAttributes.ClassSemanticsMask) == TypeAttributes.Interface; 188attributes &= ~TypeAttributes.ClassSemanticsMask; 189attributes |= TypeAttributes.Interface; 194attributes &= ~TypeAttributes.Interface;
compmod\system\codedom\CodeTypeDelegate.cs (2)
39TypeAttributes &= ~TypeAttributes.ClassSemanticsMask; 40TypeAttributes |= TypeAttributes.Class;
compmod\system\codedom\compiler\CodeGenerator.cs (12)
1146protected virtual void OutputTypeAttributes(TypeAttributes attributes, bool isStruct, bool isEnum) { 1147switch(attributes & TypeAttributes.VisibilityMask) { 1148case TypeAttributes.Public: 1149case TypeAttributes.NestedPublic: 1152case TypeAttributes.NestedPrivate: 1164switch (attributes & TypeAttributes.ClassSemanticsMask) { 1165case TypeAttributes.Class: 1166if ((attributes & TypeAttributes.Sealed) == TypeAttributes.Sealed) { 1169if ((attributes & TypeAttributes.Abstract) == TypeAttributes.Abstract) { 1174case TypeAttributes.Interface:
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (2)
1535if ((iface.Attributes & (TypeAttributes.Public | TypeAttributes.NestedPublic)) != 0) {
net\System\Net\Configuration\DefaultProxySection.cs (2)
188if ((theType.Attributes & TypeAttributes.VisibilityMask) != TypeAttributes.Public)
regex\system\text\regularexpressions\RegexCompiler.cs (4)
3370_typebuilder = _module.DefineType(typename, TypeAttributes.Class | TypeAttributes.Public, inheritfromclass); 3372_typebuilder = _module.DefineType(typename, TypeAttributes.Class | TypeAttributes.NotPublic, inheritfromclass);
System.Activities (3)
System\Activities\Debugger\StateManager.cs (2)
537TypeBuilder typeBuilder = this.dynamicModule.DefineType(typeName, TypeAttributes.Public | TypeAttributes.Class);
System\Activities\XamlIntegration\TextExpressionCompiler.cs (1)
1748typedDataContext.TypeAttributes = TypeAttributes.NestedPrivate;
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1078protected override TypeAttributes GetAttributeFlagsImpl() { return _baseReflectionType.Attributes; }
System.AddIn (13)
System\Addin\MiniReflection\MiniModule.cs (5)
173System.Reflection.TypeAttributes flags = (System.Reflection.TypeAttributes) _peFile.B.ReadUInt32(); 174System.Reflection.TypeAttributes vis = flags & System.Reflection.TypeAttributes.VisibilityMask; 175bool isPublic = vis == System.Reflection.TypeAttributes.Public; // NestedPublic not supported
System\Addin\MiniReflection\TypeInfo.cs (8)
320System.Reflection.TypeAttributes attrs = (System.Reflection.TypeAttributes) peFile.B.ReadUInt32(); // TypeAttributes; 321return (attrs & System.Reflection.TypeAttributes.Interface) != 0; 487System.Reflection.TypeAttributes flags = (System.Reflection.TypeAttributes) peFile.B.ReadUInt32(); 488System.Reflection.TypeAttributes vis = System.Reflection.TypeAttributes.VisibilityMask & flags; 489bool isPublic = (vis == System.Reflection.TypeAttributes.Public); // don't support NestedPublic
System.Core (6)
Microsoft\Scripting\Compiler\AssemblyGen.cs (6)
103private TypeBuilder DefineType(string name, Type parent, TypeAttributes attr) { 127TypeAttributes.Class | TypeAttributes.Public | TypeAttributes.Sealed | TypeAttributes.AnsiClass | TypeAttributes.AutoClass
System.Data (2)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1078protected override TypeAttributes GetAttributeFlagsImpl() { return _baseReflectionType.Attributes; }
fx\src\data\System\Data\CodeGen\datacache.cs (1)
1003delegateClass.TypeAttributes |= System.Reflection.TypeAttributes.Public;
System.Data.Entity (10)
System\Data\Objects\Internal\EntityProxyFactory.cs (10)
566TypeAttributes access = ospaceEntityType.ClrType.Attributes & TypeAttributes.VisibilityMask; 577access == TypeAttributes.Public); 706TypeAttributes proxyTypeAttributes = TypeAttributes.Class | TypeAttributes.Public | TypeAttributes.Sealed; 707if ((BaseType.Attributes & TypeAttributes.Serializable) == TypeAttributes.Serializable) 709proxyTypeAttributes |= TypeAttributes.Serializable;
System.Data.Entity.Design (12)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (2)
672typeDecl.TypeAttributes = TypeAttributes.Sealed | TypeAttributes.Public;
System\Data\EntityModel\Emitters\MetadataItemEmitter.cs (6)
110protected static TypeAttributes GetTypeAccessibilityValue(MetadataItem item) 112TypeAttributes accessibilty = TypeAttributes.Public; 180private static TypeAttributes GetCodeAccessibilityTypeAttribute(string accessibility) 185return TypeAttributes.NotPublic; 190return TypeAttributes.Public;
System\Data\EntityModel\Emitters\SchemaTypeEmitter.cs (1)
161typeDecl.TypeAttributes &= ~System.Reflection.TypeAttributes.VisibilityMask;
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (3)
54typeDecl.TypeAttributes = System.Reflection.TypeAttributes.Class; 57typeDecl.TypeAttributes |= System.Reflection.TypeAttributes.Abstract; 72if ( (typeDecl.TypeAttributes & System.Reflection.TypeAttributes.Abstract) == 0)
System.Data.Services.Design (10)
System\Data\EntityModel\Emitters\MetadataItemEmitter.cs (6)
103protected static TypeAttributes GetTypeAccessibilityValue(MetadataItem item) 105TypeAttributes accessibilty = TypeAttributes.Public; 173private static TypeAttributes GetCodeAccessibilityTypeAttribute(string accessibility) 178return TypeAttributes.NotPublic; 183return TypeAttributes.Public;
System\Data\EntityModel\Emitters\SchemaTypeEmitter.cs (1)
154typeDecl.TypeAttributes &= ~System.Reflection.TypeAttributes.VisibilityMask;
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (3)
45typeDecl.TypeAttributes = System.Reflection.TypeAttributes.Class; 48typeDecl.TypeAttributes |= System.Reflection.TypeAttributes.Abstract; 63if ((typeDecl.TypeAttributes & System.Reflection.TypeAttributes.Abstract) == 0)
System.Data.SqlXml (3)
System\Xml\Xsl\IlGen\XmlILModule.cs (1)
154this.typeBldr = modBldr.DefineType("System.Xml.Xsl.CompiledQuery.Query", TypeAttributes.Public);
System\Xml\Xsl\Xslt\Scripts.cs (1)
137newScriptClass.typeDecl.TypeAttributes = TypeAttributes.Public;
System\Xml\Xsl\XsltOld\Compiler.cs (1)
697scriptClass.TypeAttributes = TypeAttributes.Public;
System.Management (5)
WmiGenerator.cs (5)
1128SysPropsClass.TypeAttributes =TypeAttributes.NestedPublic; 1878EnumObj.TypeAttributes = TypeAttributes.Public; 1982EnumObj.TypeAttributes = TypeAttributes.Public; 4306ccc.TypeAttributes =TypeAttributes.NestedPublic ; 4518ecc.TypeAttributes =TypeAttributes.NestedPublic;
System.Runtime.Serialization (4)
System\Runtime\Serialization\CodeExporter.cs (4)
454type.TypeAttributes = TypeAttributes.NotPublic; 456type.TypeAttributes = TypeAttributes.Public; 506type.TypeAttributes = TypeAttributes.NestedAssembly; 508type.TypeAttributes = TypeAttributes.NestedPublic;
System.ServiceModel (4)
System\ServiceModel\ComIntegration\EmitterCache.cs (3)
78TypeBuilder typeBuilder = DynamicModule.DefineType(interfaceType.Name + "MarshalByRefObject", TypeAttributes.Public | TypeAttributes.Class | TypeAttributes.Abstract,
System\ServiceModel\Description\ServiceContractGenerator.cs (1)
564codeType.TypeAttributes &= ~TypeAttributes.Public;
System.Web (4)
Compilation\DelayLoadType.cs (1)
80protected override TypeAttributes GetAttributeFlagsImpl() {
Compilation\ObjectFactoryCodeDomTreeGenerator.cs (1)
53_factoryClass.TypeAttributes &= ~TypeAttributes.Public;
Util\FactoryGenerator.cs (1)
146TypeAttributes.Public,
Util\FastPropertyAccessor.cs (1)
114TypeAttributes.Public,
System.Web.Extensions (2)
UI\WebControls\Dynamic.cs (2)
319TypeBuilder tb = this.module.DefineType(typeName, TypeAttributes.Class | 320TypeAttributes.Public, typeof(DynamicClass));
System.Web.Mobile (1)
UI\MobileControls\FactoryGenerator.cs (1)
161TypeAttributes.Public,
System.Web.Services (4)
System\Web\Services\Description\WebCodeGenerator.cs (4)
214codeClass.TypeAttributes |= TypeAttributes.Public; 216codeClass.TypeAttributes &= ~TypeAttributes.Public; 218codeClass.TypeAttributes |= TypeAttributes.Abstract; 220codeClass.TypeAttributes &= ~TypeAttributes.Abstract;
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (1)
856EnumBuilder enumBuilder = ModuleBuilder.DefineEnum(enumName, TypeAttributes.Public, enumType);
System.Workflow.ComponentModel (32)
AuthoringOM\Compiler\TypeSystem\AssemblyLoader.cs (2)
102if ((type != null) && (type.IsPublic || type.IsNestedPublic || (this.isLocalAssembly && type.Attributes != TypeAttributes.NestedPrivate))) 117if (type.IsPublic || (this.isLocalAssembly && type.Attributes != TypeAttributes.NestedPrivate))
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (10)
23private TypeAttributes typeAttributes; 74this.typeAttributes = default(TypeAttributes); 104this.typeAttributes = elementType.Attributes & TypeAttributes.VisibilityMask | TypeAttributes.Class | TypeAttributes.Sealed | TypeAttributes.Serializable; 110this.typeAttributes = TypeAttributes.AnsiClass; 130this.typeAttributes |= codeDomType.TypeAttributes & ~TypeAttributes.Public; 137this.typeAttributes |= TypeAttributes.Serializable; 977protected override TypeAttributes GetAttributeFlagsImpl()
AuthoringOM\Compiler\TypeSystem\Helper.cs (19)
94internal static TypeAttributes ConvertToTypeAttributes(MemberAttributes memberAttributes, Type declaringType) 96TypeAttributes typeAttributes = default(TypeAttributes); 100typeAttributes |= ((declaringType != null) ? TypeAttributes.NestedAssembly : TypeAttributes.NotPublic); 102typeAttributes |= ((declaringType != null) ? TypeAttributes.NestedFamily : TypeAttributes.NotPublic); 104typeAttributes |= ((declaringType != null) ? TypeAttributes.NestedFamANDAssem : TypeAttributes.NotPublic); 106typeAttributes |= ((declaringType != null) ? TypeAttributes.NestedFamORAssem : TypeAttributes.NotPublic); 108typeAttributes |= ((declaringType != null) ? TypeAttributes.NestedPrivate : TypeAttributes.NotPublic); 110typeAttributes |= ((declaringType != null) ? TypeAttributes.NestedPublic : TypeAttributes.Public); 114typeAttributes |= TypeAttributes.Abstract; 116typeAttributes |= TypeAttributes.Sealed; 118typeAttributes |= (TypeAttributes.Abstract | TypeAttributes.Sealed);
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (1)
747protected override TypeAttributes GetAttributeFlagsImpl()
System.WorkflowServices (6)
System\Workflow\Activities\ContractType.cs (6)
32private TypeAttributes typeAttributes; 64this.typeAttributes = TypeAttributes.Interface | 65TypeAttributes.Sealed | 66TypeAttributes.Public | 67TypeAttributes.Abstract; 465protected override TypeAttributes GetAttributeFlagsImpl()
System.Xml (19)
System\Xml\Serialization\CodeExporter.cs (1)
221codeClass.TypeAttributes |= TypeAttributes.Public;
System\Xml\Serialization\CodeGenerator.cs (1)
1774static internal TypeBuilder CreateTypeBuilder(ModuleBuilder moduleBuilder, string name, TypeAttributes attributes, Type parent, Type[] interfaces) {
System\Xml\Serialization\SoapCodeExporter.cs (2)
143codeClass.TypeAttributes |= TypeAttributes.Public; 145codeClass.TypeAttributes |= TypeAttributes.Abstract;
System\Xml\Serialization\XmlCodeExporter.cs (2)
516codeClass.TypeAttributes |= TypeAttributes.Public; 518codeClass.TypeAttributes |= TypeAttributes.Abstract;
System\Xml\Serialization\XmlSerializationILGen.cs (11)
34TypeAttributes typeAttributes; 47this.typeAttributes = TypeAttributes.Public; 63internal TypeAttributes TypeAttributes { get { return typeAttributes; } } 254TypeAttributes.Public | TypeAttributes.Abstract | TypeAttributes.BeforeFieldInit, 302TypeAttributes.Public | TypeAttributes.Sealed | TypeAttributes.BeforeFieldInit, 467TypeAttributes.Public | TypeAttributes.BeforeFieldInit,
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
190TypeAttributes | TypeAttributes.BeforeFieldInit,
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
30TypeAttributes | TypeAttributes.BeforeFieldInit,
XamlBuildTask (6)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (3)
167TypeAttributes = classData.IsPublic ? TypeAttributes.Public : TypeAttributes.NotPublic 1059TypeAttributes = TypeAttributes.NotPublic,
Microsoft\Build\Tasks\Xaml\XamlBuildTaskServices.cs (3)
103TypeConverter typeAttributesConverter = codeDomProvider.GetConverter(typeof(TypeAttributes)); 110_internalClass = typeAttributesConverter.ConvertToInvariantString(TypeAttributes.NotPublic).ToUpperInvariant(); 111_publicClass = typeAttributesConverter.ConvertToInvariantString(TypeAttributes.Public).ToUpperInvariant();