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