1using System.Reflection;
Discovers the attributes of a field and provides access to field metadata.
bool IsNotSerialized
Gets a value indicating whether this field has the NotSerialized attribute.
bool IsPublic
Gets a value indicating whether the field is public.
FieldAttributes Attributes
Gets the attributes associated with this field.
ITypeSymbol[] GetOptionalCustomModifiers()
Gets an array of types that identify the optional custom modifiers of the field.
bool IsFamilyOrAssembly
Gets a value indicating whether the potential visibility of this field is described by FieldAttribute...
ITypeSymbol[] GetRequiredCustomModifiers()
Gets an array of types that identify the required custom modifiers of the property.
bool IsPrivate
Gets a value indicating whether the field is private.
bool IsFamily
Gets a value indicating whether the visibility of this field is described by FieldAttributes....
bool IsAssembly
Gets a value indicating whether the potential visibility of this field is described by FieldAttribute...
bool IsLiteral
Gets a value indicating whether the value is written at compile time and cannot be changed.
object? GetRawConstantValue()
Returns a literal value associated with the field by a compiler.
bool IsInitOnly
Gets a value indicating whether the field can only be set in the body of the constructor.
bool IsSpecialName
Gets a value indicating whether the corresponding SpecialName attribute is set in the FieldAttributes...
bool IsFamilyAndAssembly
Gets a value indicating whether the visibility of this field is described by FieldAttributes....
ITypeSymbol FieldType
Gets the type of this field object.
bool IsPinvokeImpl
Gets a value indicating whether the corresponding PinvokeImpl attribute is set in FieldAttributes.
bool IsStatic
Gets a value indicating whether the field is static.
Obtains information about the attributes of a member and provides access to member metadata.
Represents type declarations: class types, interface types, array types, value types,...