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