279 references to MemberAttributes
Microsoft.Build.Tasks.Core (35)
CodeTaskFactory.cs (5)
357Attributes = MemberAttributes.Private 370Attributes = MemberAttributes.Public, 395Attributes = MemberAttributes.Override | MemberAttributes.Public 926Attributes = MemberAttributes.Final
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (5)
217Attributes = MemberAttributes.Final 234Attributes = MemberAttributes.Override | MemberAttributes.Public, 622Attributes = MemberAttributes.Private, 637Attributes = MemberAttributes.Public,
system.design\stronglytypedresourcebuilder.cs (15)
349ctor.Attributes = MemberAttributes.FamilyAndAssembly; 353ctor.Attributes = MemberAttributes.Public; 362Attributes = MemberAttributes.Private 366field.Attributes |= MemberAttributes.Static; 374field.Attributes = MemberAttributes.Private; 377field.Attributes |= MemberAttributes.Static; 391resMgr.Attributes = MemberAttributes.Assembly; 395resMgr.Attributes = MemberAttributes.Public; 400resMgr.Attributes |= MemberAttributes.Static; 424culture.Attributes = MemberAttributes.Assembly; 428culture.Attributes = MemberAttributes.Public; 433culture.Attributes |= MemberAttributes.Static; 579prop.Attributes = MemberAttributes.Assembly; 583prop.Attributes = MemberAttributes.Public; 588prop.Attributes |= MemberAttributes.Static;
XamlTaskFactory\TaskGenerator.cs (10)
434Attributes = MemberAttributes.Family | MemberAttributes.Override 483Attributes = MemberAttributes.Family | MemberAttributes.Override 527Attributes = MemberAttributes.Public 1075Attributes = MemberAttributes.Override | MemberAttributes.Family, 1130var defaultConstructor = new CodeConstructor { Attributes = MemberAttributes.Public }; 1173Attributes = MemberAttributes.Family | MemberAttributes.Override
PresentationBuildTasks (43)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (37)
886_ccRoot.StyleConnectorFn.Attributes = MemberAttributes.Public | MemberAttributes.Final; 1118_ccRoot.HookupFn.Attributes = MemberAttributes.Public | MemberAttributes.Final; 1639internal MemberAttributes GetMemberAttributes(string modifier) 1650TypeConverter converter = codeProvider.GetConverter(typeof(MemberAttributes)); 1657_private = converter.ConvertToInvariantString(MemberAttributes.Private).ToLowerInvariant(); 1658_public = converter.ConvertToInvariantString(MemberAttributes.Public).ToLowerInvariant(); 1659_protected = converter.ConvertToInvariantString(MemberAttributes.Family).ToLowerInvariant(); 1660_internal = converter.ConvertToInvariantString(MemberAttributes.Assembly).ToLowerInvariant(); 1661_protectedInternal = converter.ConvertToInvariantString(MemberAttributes.FamilyOrAssembly).ToLowerInvariant(); 1684return MemberAttributes.Private; 1688return MemberAttributes.Public; 1692return MemberAttributes.Family; 1696return MemberAttributes.Assembly; 1700return MemberAttributes.FamilyOrAssembly; 1707return MemberAttributes.Assembly; 2043cmmEventHandler.Attributes = MemberAttributes.Assembly | MemberAttributes.Overloaded; 2215field.Attributes = MemberAttributes.Assembly; 2560cmmCD.Attributes = MemberAttributes.Assembly | MemberAttributes.Final; 2700cmfCL.Attributes = MemberAttributes.Private; 2755cmmCI.Attributes = MemberAttributes.Family | MemberAttributes.Override; 2790cmmGPV.Attributes = MemberAttributes.Family | MemberAttributes.Override; 2819cmmSPV.Attributes = MemberAttributes.Family | MemberAttributes.Override; 2854cmmCD.Attributes = MemberAttributes.Family | MemberAttributes.Override; 2901cmmAEH.Attributes = MemberAttributes.Family | MemberAttributes.Override; 3170cmmMain.Attributes = MemberAttributes.Public | MemberAttributes.Static; 3426_initializeComponentFn.Attributes = MemberAttributes.Public | MemberAttributes.Final;
MS\Internal\MarkupCompiler\ParserExtension.cs (6)
662else if (_fieldModifier != MemberAttributes.Assembly) 664if (MemberAttributes.Private != _fieldModifier && 665MemberAttributes.Assembly != _fieldModifier) 671_fieldModifier = MemberAttributes.Assembly; 940private MemberAttributes _fieldModifier = MemberAttributes.Assembly;
System (1)
src\libraries\shims\System\ref\System.cs (1)
131[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CodeDom.MemberAttributes))]
System.CodeDom (116)
Microsoft\CSharp\CSharpCodeGenerator.cs (33)
1399&& (e.Attributes & MemberAttributes.ScopeMask) != MemberAttributes.Abstract) 1491if (IsCurrentInterface || (e.Attributes & MemberAttributes.ScopeMask) == MemberAttributes.Abstract) 1507if (IsCurrentInterface || (e.Attributes & MemberAttributes.ScopeMask) == MemberAttributes.Abstract) 1575private void OutputVTableModifier(MemberAttributes attributes) 1577switch (attributes & MemberAttributes.VTableMask) 1579case MemberAttributes.New: 1585private void OutputMemberAccessModifier(MemberAttributes attributes) 1587switch (attributes & MemberAttributes.AccessMask) 1589case MemberAttributes.Assembly: 1592case MemberAttributes.FamilyAndAssembly: 1595case MemberAttributes.Family: 1598case MemberAttributes.FamilyOrAssembly: 1601case MemberAttributes.Private: 1604case MemberAttributes.Public: 1610private void OutputMemberScopeModifier(MemberAttributes attributes) 1612switch (attributes & MemberAttributes.ScopeMask) 1614case MemberAttributes.Abstract: 1617case MemberAttributes.Final: 1620case MemberAttributes.Static: 1623case MemberAttributes.Override: 1627switch (attributes & MemberAttributes.AccessMask) 1629case MemberAttributes.Family: 1630case MemberAttributes.Public: 1631case MemberAttributes.Assembly: 1700private void OutputFieldScopeModifier(MemberAttributes attributes) 1702switch (attributes & MemberAttributes.ScopeMask) 1704case MemberAttributes.Final: 1706case MemberAttributes.Static: 1709case MemberAttributes.Const: 2322if ((e.Attributes & MemberAttributes.New) != 0)
Microsoft\CSharp\CSharpCodeProvider.cs (1)
42type == typeof(MemberAttributes) ? CSharpMemberAttributeConverter.Default :
Microsoft\CSharp\CSharpMemberAttributeConverter.cs (6)
17new object[] { MemberAttributes.Public, MemberAttributes.Family, MemberAttributes.FamilyOrAssembly, MemberAttributes.Assembly, MemberAttributes.Private }; 19protected override object DefaultValue => MemberAttributes.Private;
Microsoft\VisualBasic\VBCodeGenerator.cs (34)
498protected override void OutputFieldScopeModifier(MemberAttributes attributes) 500switch (attributes & MemberAttributes.ScopeMask) 502case MemberAttributes.Final: 505case MemberAttributes.Static: 514case MemberAttributes.Const: 523protected override void OutputMemberAccessModifier(MemberAttributes attributes) 525switch (attributes & MemberAttributes.AccessMask) 527case MemberAttributes.Assembly: 530case MemberAttributes.FamilyAndAssembly: 533case MemberAttributes.Family: 536case MemberAttributes.FamilyOrAssembly: 539case MemberAttributes.Private: 542case MemberAttributes.Public: 548private void OutputVTableModifier(MemberAttributes attributes) 550switch (attributes & MemberAttributes.VTableMask) 552case MemberAttributes.New: 558protected override void OutputMemberScopeModifier(MemberAttributes attributes) 560switch (attributes & MemberAttributes.ScopeMask) 562case MemberAttributes.Abstract: 565case MemberAttributes.Final: 568case MemberAttributes.Static: 577case MemberAttributes.Override: 580case MemberAttributes.Private: 584switch (attributes & MemberAttributes.AccessMask) 586case MemberAttributes.Family: 587case MemberAttributes.Public: 588case MemberAttributes.Assembly: 683if ((e.Attributes & MemberAttributes.New) != 0) 1552if ((e.Attributes & MemberAttributes.Overloaded) != 0) 1676&& (e.Attributes & MemberAttributes.ScopeMask) != MemberAttributes.Abstract) 1714if ((e.Attributes & MemberAttributes.Overloaded) != 0) 1824if (!c.IsInterface && (e.Attributes & MemberAttributes.ScopeMask) != MemberAttributes.Abstract)
Microsoft\VisualBasic\VBCodeProvider.cs (1)
44type == typeof(MemberAttributes) ? VBMemberAttributeConverter.Default :
Microsoft\VisualBasic\VBMemberAttributeConverter.cs (6)
17new object[] { MemberAttributes.Public, MemberAttributes.Family, MemberAttributes.FamilyOrAssembly, MemberAttributes.Assembly, MemberAttributes.Private }; 19protected override object DefaultValue => MemberAttributes.Private;
System\CodeDom\CodeTypeMember.cs (3)
19public MemberAttributes Attributes { get; set; } = MemberAttributes.Private | MemberAttributes.Final;
System\CodeDom\Compiler\CodeGenerator.cs (26)
1066protected virtual void OutputFieldScopeModifier(MemberAttributes attributes) 1068switch (attributes & MemberAttributes.VTableMask) 1070case MemberAttributes.New: 1075switch (attributes & MemberAttributes.ScopeMask) 1077case MemberAttributes.Final: 1079case MemberAttributes.Static: 1082case MemberAttributes.Const: 1090protected virtual void OutputMemberAccessModifier(MemberAttributes attributes) 1092switch (attributes & MemberAttributes.AccessMask) 1094case MemberAttributes.Assembly: 1097case MemberAttributes.FamilyAndAssembly: 1100case MemberAttributes.Family: 1103case MemberAttributes.FamilyOrAssembly: 1106case MemberAttributes.Private: 1109case MemberAttributes.Public: 1115protected virtual void OutputMemberScopeModifier(MemberAttributes attributes) 1117switch (attributes & MemberAttributes.VTableMask) 1119case MemberAttributes.New: 1124switch (attributes & MemberAttributes.ScopeMask) 1126case MemberAttributes.Abstract: 1129case MemberAttributes.Final: 1132case MemberAttributes.Static: 1135case MemberAttributes.Override: 1139switch (attributes & MemberAttributes.AccessMask) 1141case MemberAttributes.Family: 1142case MemberAttributes.Public:
System\CodeDom\Compiler\CodeValidator.cs (6)
301if (!(IsCurrentInterface || (e.Attributes & MemberAttributes.ScopeMask) == MemberAttributes.Abstract)) 309if (!(IsCurrentInterface || (e.Attributes & MemberAttributes.ScopeMask) == MemberAttributes.Abstract)) 365&& (e.Attributes & MemberAttributes.ScopeMask) != MemberAttributes.Abstract)
System.Runtime.Serialization.Schema (26)
System\Runtime\Serialization\Schema\CodeExporter.cs (26)
856field.Attributes = MemberAttributes.Private; 1044raisePropertyChangedEventMethod.Attributes |= MemberAttributes.Family; 1305typeNameField.Attributes |= MemberAttributes.Static | MemberAttributes.Private; 1708nodeArrayField.Attributes = MemberAttributes.Private; 1721readXmlMethod.Attributes = MemberAttributes.Public | MemberAttributes.Final; 1743writeXmlMethod.Attributes = MemberAttributes.Public | MemberAttributes.Final; 1763getSchemaMethod.Attributes = MemberAttributes.Public | MemberAttributes.Final; 1780getSchemaStaticMethod.Attributes = MemberAttributes.Static | MemberAttributes.Public; 1803baseConstructor.Attributes = MemberAttributes.Public; 1824derivedConstructor.Attributes = MemberAttributes.Public; 1840serializationInfoField.Attributes = MemberAttributes.Private; 1861getObjectDataMethod.Attributes = MemberAttributes.Public | MemberAttributes.Final; 1925extensionDataObjectField.Attributes = MemberAttributes.Private; 1937extensionDataObjectProperty.Attributes = MemberAttributes.Public | MemberAttributes.Final; 1959raisePropertyChangedEventMethod.Attributes = MemberAttributes.Final; 1976propertyChangedEvent.Attributes = MemberAttributes.Public; 1994property.Attributes = MemberAttributes.Final; 1996property.Attributes |= MemberAttributes.Assembly; 1998property.Attributes |= MemberAttributes.Public;
System.Windows.Forms.Design (58)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (3)
439Debug.Assert(state is MemberAttributes, "Attempting to deserialize a null modifier"); 443MemberAttributes modifierValue = (MemberAttributes)state;
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifierConverter.cs (8)
56TypeConverter? modifierConverter = context?.GetService<CodeDomProvider>()?.GetConverter(typeof(MemberAttributes)); 57return modifierConverter ?? TypeDescriptor.GetConverter(typeof(MemberAttributes)); 97foreach (MemberAttributes value in values) 99if ((value & MemberAttributes.AccessMask) == 0) 108List<MemberAttributes> list = new(values.Count); 110foreach (MemberAttributes value in values) 112if ((value & MemberAttributes.AccessMask) != 0 && value != MemberAttributes.AccessMask)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersExtenderProvider.cs (6)
88[DefaultValue(MemberAttributes.Private)] 93public static MemberAttributes GetModifiers(IComponent comp) 97if (dictionary.GetValue("Modifiers") is MemberAttributes value) 106out MemberAttributes memberAttributes)) 111return MemberAttributes.Private; 166public static void SetModifiers(IComponent comp, MemberAttributes modifiers)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersInheritedExtenderProvider.cs (17)
71[DefaultValue(MemberAttributes.Private)] 75public MemberAttributes GetModifiers(IComponent comp) 86return MemberAttributes.Private; 94return MemberAttributes.Private; 97return MemberAttributes.Public; 100return MemberAttributes.Family; 103return MemberAttributes.Assembly; 106return MemberAttributes.FamilyOrAssembly; 109return MemberAttributes.FamilyAndAssembly; 118return MemberAttributes.Private; 122return MemberAttributes.Private; 125return MemberAttributes.Public; 128return MemberAttributes.Family; 131return MemberAttributes.Assembly; 134return MemberAttributes.FamilyOrAssembly; 137return MemberAttributes.FamilyAndAssembly; 139return MemberAttributes.Private;
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (2)
224if (modifiersProp is null || !modifiersProp.TryGetValue(value, out MemberAttributes fieldAttrs)) 226fieldAttrs = MemberAttributes.Private;
System\ComponentModel\Design\Serialization\ComponentTypeCodeDomSerializer.cs (1)
34Attributes = MemberAttributes.Private
System\ComponentModel\Design\Serialization\ContainerCodeDomSerializer.cs (1)
54Attributes = MemberAttributes.Private
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (3)
308if (prop is not null && prop.PropertyType == typeof(MemberAttributes)) 310MemberAttributes modifiers = field.Attributes & MemberAttributes.AccessMask;
System\Resources\Tools\StronglyTypedResourceBuilder.cs (17)
498constructor.Attributes = useStatic || internalClass ? MemberAttributes.FamilyAndAssembly : MemberAttributes.Public; 505Attributes = useStatic ? MemberAttributes.Static | MemberAttributes.Private : MemberAttributes.Private 514Attributes = useStatic ? MemberAttributes.Static | MemberAttributes.Private : MemberAttributes.Private 526Attributes = internalClass ? MemberAttributes.Assembly : MemberAttributes.Public 531resourceManagerProperty.Attributes |= MemberAttributes.Static; 557Attributes = internalClass ? MemberAttributes.Assembly : MemberAttributes.Public 564culture.Attributes |= MemberAttributes.Static; 720property.Attributes = internalClass ? MemberAttributes.Assembly : MemberAttributes.Public; 724property.Attributes |= MemberAttributes.Static;