20 base(context, type.ContainingModule, type, underlyingField)
22 _underlyingField = underlyingField ??
throw new ArgumentNullException(nameof(underlyingField));
25 internal FieldInfo UnderlyingField => _underlyingField;
27 public global::System.Reflection.FieldAttributes
Attributes => (global::System.Reflection.FieldAttributes)_underlyingField.Attributes;
33 public bool IsFamily => _underlyingField.IsFamily;
41 public bool IsLiteral => _underlyingField.IsLiteral;
43#pragma warning disable SYSLIB0050
45#pragma warning restore SYSLIB0050
49 public bool IsPrivate => _underlyingField.IsPrivate;
51 public bool IsPublic => _underlyingField.IsPublic;
55 public bool IsStatic => _underlyingField.IsStatic;
59 return ResolveTypeSymbols(_underlyingField.GetOptionalCustomModifiers());
64 return _underlyingField.GetRawConstantValue();
69 return ResolveTypeSymbols(_underlyingField.GetRequiredCustomModifiers());
IKVM.Reflection.FieldInfo FieldInfo
object? GetRawConstantValue()
Returns a literal value associated with the field by a compiler.
bool IsNotSerialized
Gets a value indicating whether this field has the NotSerialized attribute.
bool IsStatic
Gets a value indicating whether the field is static.
bool IsPrivate
Gets a value indicating whether the field is private.
bool IsFamilyOrAssembly
Gets a value indicating whether the potential visibility of this field is described by FieldAttribute...
bool IsSpecialName
Gets a value indicating whether the corresponding SpecialName attribute is set in the FieldAttributes...
IkvmReflectionFieldSymbol(IkvmReflectionSymbolContext context, IkvmReflectionTypeSymbol type, FieldInfo underlyingField)
Initializes a new instance.
bool IsFamily
Gets a value indicating whether the visibility of this field is described by FieldAttributes....
ITypeSymbol[] GetRequiredCustomModifiers()
Gets an array of types that identify the required custom modifiers of the property.
bool IsAssembly
Gets a value indicating whether the potential visibility of this field is described by FieldAttribute...
global::System.Reflection.FieldAttributes Attributes
Gets the attributes associated with this field.
bool IsLiteral
Gets a value indicating whether the value is written at compile time and cannot be changed.
ITypeSymbol FieldType
Gets the type of this field object.
bool IsInitOnly
Gets a value indicating whether the field can only be set in the body of the constructor.
bool IsPinvokeImpl
Gets a value indicating whether the corresponding PinvokeImpl attribute is set in FieldAttributes.
ITypeSymbol[] GetOptionalCustomModifiers()
Gets an array of types that identify the optional custom modifiers of the field.
bool IsPublic
Gets a value indicating whether the field is public.
bool IsFamilyAndAssembly
Gets a value indicating whether the visibility of this field is described by FieldAttributes....
Holds references to symbols derived from System.Reflection.
Discovers the attributes of a field and provides access to field metadata.
Represents type declarations: class types, interface types, array types, value types,...