158 references to FieldAttributes
mscorlib (114)
system\__filters.cs (16)
77
FieldAttributes
criteria = 0;
80
criteria = (
FieldAttributes
) i;
86
FieldAttributes
attr = ((FieldInfo) m).Attributes;
87
if (((criteria &
FieldAttributes
.FieldAccessMask) != 0) && (attr &
FieldAttributes
.FieldAccessMask) != (criteria &
FieldAttributes
.FieldAccessMask))
89
if (((criteria &
FieldAttributes
.Static) != 0) && (attr &
FieldAttributes
.Static) == 0)
91
if (((criteria &
FieldAttributes
.InitOnly) != 0) && (attr &
FieldAttributes
.InitOnly) == 0)
93
if (((criteria &
FieldAttributes
.Literal) != 0) && (attr &
FieldAttributes
.Literal) == 0)
95
if (((criteria &
FieldAttributes
.NotSerialized) != 0) && (attr &
FieldAttributes
.NotSerialized) == 0)
97
if (((criteria &
FieldAttributes
.PinvokeImpl) != 0) && (attr &
FieldAttributes
.PinvokeImpl) == 0)
system\diagnostics\symbolstore\isymwriter.cs (3)
131
FieldAttributes
attributes,
161
FieldAttributes
attributes,
170
FieldAttributes
attributes,
system\nonserializedattribute.cs (2)
25
if ((field.Attributes &
FieldAttributes
.NotSerialized) == 0)
33
return (field.Attributes &
FieldAttributes
.NotSerialized) != 0;
system\reflection\cominterfaces.cs (1)
508
FieldAttributes
Attributes { get; }
system\reflection\emit\enumbuilder.cs (6)
49
FieldAttributes
.Public |
FieldAttributes
.Static |
FieldAttributes
.Literal);
416
m_underlyingField = m_typeBuilder.DefineField("value__", underlyingType,
FieldAttributes
.Public |
FieldAttributes
.SpecialName |
FieldAttributes
.RTSpecialName);
system\reflection\emit\fieldbuilder.cs (4)
29
private
FieldAttributes
m_Attributes;
36
Type[] requiredCustomModifiers, Type[] optionalCustomModifiers,
FieldAttributes
attributes)
57
m_Attributes = attributes & ~
FieldAttributes
.ReservedMask;
152
public override
FieldAttributes
Attributes
system\reflection\emit\ilgenerator.cs (1)
1240
if ((fld.Attributes &
FieldAttributes
.Static)!=0) {
system\reflection\emit\methodbuilder.cs (1)
1382
FieldAttributes
.PrivateScope,
system\reflection\emit\modulebuilder.cs (4)
1595
public FieldBuilder DefineInitializedData(String name, byte[] data,
FieldAttributes
attributes)
1611
private FieldBuilder DefineInitializedDataNoLock(String name, byte[] data,
FieldAttributes
attributes)
1630
public FieldBuilder DefineUninitializedData(String name, int size,
FieldAttributes
attributes)
1643
private FieldBuilder DefineUninitializedDataNoLock(String name, int size,
FieldAttributes
attributes)
system\reflection\emit\typebuilder.cs (11)
211
FieldAttributes
attributes);
857
private FieldBuilder DefineDataHelper(String name, byte[] data, int size,
FieldAttributes
attributes)
892
fdBuilder = DefineField(name, valueClassType,(attributes |
FieldAttributes
.Static));
2041
public FieldBuilder DefineField(String fieldName, Type type,
FieldAttributes
attributes)
2048
Type[] optionalCustomModifiers,
FieldAttributes
attributes)
2058
Type[] optionalCustomModifiers,
FieldAttributes
attributes)
2066
if ((attributes &
FieldAttributes
.Static) == 0)
2081
public FieldBuilder DefineInitializedData(String name, byte[] data,
FieldAttributes
attributes)
2090
private FieldBuilder DefineInitializedDataNoLock(String name, byte[] data,
FieldAttributes
attributes)
2108
public FieldBuilder DefineUninitializedData(String name, int size,
FieldAttributes
attributes)
2117
private FieldBuilder DefineUninitializedDataNoLock(String name, int size,
FieldAttributes
attributes)
system\reflection\emit\xxxontypebuilderinstantiation.cs (1)
290
public override
FieldAttributes
Attributes { get { return m_field.Attributes; } }
system\reflection\fieldinfo.cs (33)
136
public abstract
FieldAttributes
Attributes { get; }
153
public bool IsPublic { get { return(Attributes &
FieldAttributes
.FieldAccessMask) ==
FieldAttributes
.Public; } }
155
public bool IsPrivate { get { return(Attributes &
FieldAttributes
.FieldAccessMask) ==
FieldAttributes
.Private; } }
157
public bool IsFamily { get { return(Attributes &
FieldAttributes
.FieldAccessMask) ==
FieldAttributes
.Family; } }
159
public bool IsAssembly { get { return(Attributes &
FieldAttributes
.FieldAccessMask) ==
FieldAttributes
.Assembly; } }
161
public bool IsFamilyAndAssembly { get { return(Attributes &
FieldAttributes
.FieldAccessMask) ==
FieldAttributes
.FamANDAssem; } }
163
public bool IsFamilyOrAssembly { get { return(Attributes &
FieldAttributes
.FieldAccessMask) ==
FieldAttributes
.FamORAssem; } }
165
public bool IsStatic { get { return(Attributes &
FieldAttributes
.Static) != 0; } }
167
public bool IsInitOnly { get { return(Attributes &
FieldAttributes
.InitOnly) != 0; } }
169
public bool IsLiteral { get { return(Attributes &
FieldAttributes
.Literal) != 0; } }
171
public bool IsNotSerialized { get { return(Attributes &
FieldAttributes
.NotSerialized) != 0; } }
173
public bool IsSpecialName { get { return(Attributes &
FieldAttributes
.SpecialName) != 0; } }
175
public bool IsPinvokeImpl { get { return(Attributes &
FieldAttributes
.PinvokeImpl) != 0; } }
395
static private extern void PerformVisibilityCheckOnField(IntPtr field, Object target, RuntimeType declaringType,
FieldAttributes
attr, uint invocationFlags);
401
private
FieldAttributes
m_fieldAttributes;
455
if ((m_fieldAttributes &
FieldAttributes
.InitOnly) != (
FieldAttributes
)0)
458
if ((m_fieldAttributes &
FieldAttributes
.HasFieldRVA) != (
FieldAttributes
)0)
463
bool needsVisibilitySecurityCheck = ((m_fieldAttributes &
FieldAttributes
.FieldAccessMask) !=
FieldAttributes
.Public) ||
517
if ((m_fieldAttributes &
FieldAttributes
.Static) !=
FieldAttributes
.Static)
799
public override
FieldAttributes
Attributes
841
private
FieldAttributes
m_fieldAttributes;
846
int tkField,
FieldAttributes
fieldAttributes, RuntimeTypeHandle declaringTypeHandle, RuntimeTypeCache reflectedTypeCache, BindingFlags bindingFlags)
889
public override
FieldAttributes
Attributes { get { return m_fieldAttributes; } }
system\reflection\mdimport.cs (2)
490
public void GetFieldDefProps(int mdToken, out
FieldAttributes
fieldAttributes)
494
fieldAttributes = (
FieldAttributes
)_fieldAttributes;
system\rttype.cs (17)
358
FieldAttributes
fieldAttributes = RuntimeFieldHandle.GetAttributes(field);
359
bool isPublic = (fieldAttributes &
FieldAttributes
.FieldAccessMask) ==
FieldAttributes
.Public;
360
bool isStatic = (fieldAttributes &
FieldAttributes
.Static) != 0;
953
FieldAttributes
fieldAttributes = RuntimeFieldHandle.GetAttributes(runtimeFieldHandle);
954
FieldAttributes
fieldAccess = fieldAttributes &
FieldAttributes
.FieldAccessMask;
958
if (fieldAccess ==
FieldAttributes
.Private)
963
bool isPublic = fieldAccess ==
FieldAttributes
.Public;
964
bool isStatic = (fieldAttributes &
FieldAttributes
.Static) != 0;
1002
FieldAttributes
fieldAttributes;
1005
FieldAttributes
fieldAccess = fieldAttributes &
FieldAttributes
.FieldAccessMask;
1007
if ((fieldAttributes &
FieldAttributes
.Literal) != 0)
1012
bool isPrivate = fieldAccess ==
FieldAttributes
.Private;
1027
bool isPublic = fieldAccess ==
FieldAttributes
.Public;
1028
bool isStatic = (fieldAttributes &
FieldAttributes
.Static) != 0;
system\runtime\interopservices\tceadaptergen\eventproviderwriter.cs (3)
45
FieldAttributes
.Private
52
FieldAttributes
.Private
59
FieldAttributes
.Private
system\runtime\interopservices\tceadaptergen\eventsinkhelperwriter.cs (2)
76
FieldAttributes
.Public
88
FieldAttributes
.Public
system\runtime\serialization\formatterservices.cs (4)
57
if ((fields[i].Attributes &
FieldAttributes
.NotSerialized) ==
FieldAttributes
.NotSerialized)
65
if ((fields[i].Attributes &
FieldAttributes
.NotSerialized) ==
FieldAttributes
.NotSerialized)
system\runtime\serialization\serializationfieldinfo.cs (1)
136
public override
FieldAttributes
Attributes {
system\runtimehandles.cs (2)
1696
internal static extern
FieldAttributes
GetAttributes(RuntimeFieldHandleInternal field);
1729
internal static extern void SetValue(RtFieldInfo field, Object obj, Object value, RuntimeType fieldType,
FieldAttributes
fieldAttr, RuntimeType declaringType, ref bool domainInitialized);
System.Core (2)
Microsoft\Scripting\Compiler\LambdaCompiler.cs (2)
308
return _typeBuilder.DefineField("<ExpressionCompilerImplementationDetails>{" + Interlocked.Increment(ref _Counter) + "}" + name, type,
FieldAttributes
.Static |
FieldAttributes
.Private);
System.Data.Entity (9)
System\Data\Objects\Internal\EntityProxyFactory.cs (9)
866
FieldBuilder wrapperField = typeBuilder.DefineField(EntityProxyTypeInfo.EntityWrapperFieldName, typeof(object),
FieldAttributes
.Public);
890
FieldBuilder interceptorField = typeBuilder.DefineField(GetInterceptorFieldName(baseProperty.Name), interceptorType,
FieldAttributes
.Private |
FieldAttributes
.Static);
1141
_resetFKSetterFlagField = typeBuilder.DefineField(EntityProxyFactory.ResetFKSetterFlagFieldName, typeof(Action<object>),
FieldAttributes
.Private|
FieldAttributes
.Static);
1142
_compareByteArraysField = typeBuilder.DefineField(EntityProxyFactory.CompareByteArraysFieldName, typeof(Func<object, object, bool>),
FieldAttributes
.Private |
FieldAttributes
.Static);
1403
_changeTrackerField = typeBuilder.DefineField("_changeTracker", typeof(IEntityChangeTracker),
FieldAttributes
.Private);
1446
_relationshipManagerField = typeBuilder.DefineField("_relationshipManager", typeof(RelationshipManager),
FieldAttributes
.Private);
System.Data.SqlXml (4)
System\Xml\Xsl\IlGen\XmlILModule.cs (4)
255
return this.typeBldr.DefineInitializedData(name, data,
FieldAttributes
.Private |
FieldAttributes
.Static);
263
return this.typeBldr.DefineField(fieldName, type,
FieldAttributes
.Private |
FieldAttributes
.Static);
System.Web.Extensions (1)
UI\WebControls\Dynamic.cs (1)
339
FieldBuilder fb = tb.DefineField("_" + dp.Name, dp.Type,
FieldAttributes
.Private);
System.Workflow.ComponentModel (25)
AuthoringOM\Compiler\TypeSystem\FieldInfo.cs (2)
20
private
FieldAttributes
fieldAttributes;
72
public override
FieldAttributes
Attributes
AuthoringOM\Compiler\TypeSystem\Helper.cs (12)
69
internal static
FieldAttributes
ConvertToFieldAttributes(MemberAttributes memberAttributes)
71
FieldAttributes
fieldAttributes = default(
FieldAttributes
);
74
fieldAttributes |=
FieldAttributes
.Assembly;
76
fieldAttributes |=
FieldAttributes
.Family;
78
fieldAttributes |=
FieldAttributes
.FamANDAssem;
80
fieldAttributes |=
FieldAttributes
.FamORAssem;
82
fieldAttributes |=
FieldAttributes
.Private;
84
fieldAttributes |=
FieldAttributes
.Public;
87
fieldAttributes |= (
FieldAttributes
.Static |
FieldAttributes
.Literal);
89
fieldAttributes |=
FieldAttributes
.Static;
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (1)
890
public override
FieldAttributes
Attributes
AuthoringOM\Compiler\Validation\BindValidator.cs (4)
200
if (((pathFieldInfo.Attributes & (
FieldAttributes
.InitOnly |
FieldAttributes
.Literal)) != 0) &&
397
if (((pathFieldInfo.Attributes & (
FieldAttributes
.InitOnly |
FieldAttributes
.Literal)) != 0) &&
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (2)
847
if ((fieldInfo.Attributes &
FieldAttributes
.Static) != 0 && (fieldInfo.Attributes &
FieldAttributes
.Literal) != 0)
AuthoringOM\Serializer\FormatterServicesNoSerializableCheck.cs (4)
64
if ((fields[i].Attributes &
FieldAttributes
.NotSerialized) ==
FieldAttributes
.NotSerialized)
74
if ((fields[i].Attributes &
FieldAttributes
.NotSerialized) ==
FieldAttributes
.NotSerialized)
System.Xml (3)
System\Xml\Serialization\XmlSerializationILGen.cs (1)
131
FieldAttributes
.Private
System\Xml\Serialization\XmlSerializationReaderILGen.cs (2)
977
FieldAttributes
.Private
1839
idNameFields.Add(name, this.typeBuilder.DefineField(idName, typeof(string),
FieldAttributes
.Private));