FieldInfo
Overview
Reflection class for fields
Location
- Reference: Island.fx
- Namespace: RemObjects.Elements.System
- Ancestry: MemberInfo | FieldInfo
constructor (declared in Object)
Default constructor.
constructor
FieldInfo()
init()
FieldInfo()
Access (declared in MemberInfo)
Access of this member.
property Access: MemberAccess read;
MemberAccess Access { get; }
var Access: MemberAccess { get{} }
MemberAccess Access { __get; }
Attributes (declared in MemberInfo)
Sequence of custom attributes attached to this member.
property Attributes: IEnumerable<CustomAttribute> read;
IEnumerable<CustomAttribute> Attributes { get; }
var Attributes: IEnumerable<CustomAttribute> { get{} }
IEnumerable<CustomAttribute> Attributes { __get; }
DeclaringType (declared in MemberInfo)
Returns the declaring type.
property DeclaringType: Type read;
Type DeclaringType { get; }
var DeclaringType: Type { get{} }
Type DeclaringType { __get; }
Equals virtual (declared in Object)
Returns true if the target object matches this one, by default compares the reference.
Parameters:
- obj: the reference to compare this with.
Finalize protected virtual (declared in Object)
Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.
method Finalize
void Finalize()
func Finalize()
void Finalize()
Flags
Contains the flags of this fiedl.
property Flags: FieldFlags read;
FieldFlags Flags { get; }
var Flags: FieldFlags { get{} }
FieldFlags Flags { __get; }
GetHashCode virtual (declared in Object)
Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.
GetType (declared in Object)
Returns the actual type of this class
GetValue
Returns the value of a field for a given instance, the instance should be nil for static fields.
Parameters:
- aInst:
InstanceOffset
If this field is an instance field it contains the offset of this field relative to the start of the class/record.
property InstanceOffset: Int32 read;
Int32 InstanceOffset { get; }
var InstanceOffset: Int32 { get{} }
Int32 InstanceOffset { __get; }
IsStatic override virtual
Contains true if this field is static.
property IsStatic: Boolean read;
Boolean IsStatic { get; }
var IsStatic: Boolean { get{} }
Boolean IsStatic { __get; }
Name (declared in MemberInfo)
Name of this member.
ReferenceEquals (declared in Object)
Compares two references for equivalence (even if they have an equals operator)
Parameters:
- a: left value
- b: right value
SetValue
Sets the value of a field for a given instance, the instance should be nil for static fields.
Parameters:
- aInst:
- aValue:
StaticValuePointer
Contains a pointer to where this field is stored (if static)
property StaticValuePointer: ^void read;
void* StaticValuePointer { get; }
var StaticValuePointer: UnsafeMutablePointer<void> { get{} }
void* StaticValuePointer { __get; }
ToString virtual (declared in Object)
Gets the string representation of this method.
Type (declared in MemberInfo)
Type of this member. Could be nil if the type is never used.
Access (declared in MemberInfo)
Access of this member.
property Access: MemberAccess read;
MemberAccess Access { get; }
var Access: MemberAccess { get{} }
MemberAccess Access { __get; }
Attributes (declared in MemberInfo)
Sequence of custom attributes attached to this member.
property Attributes: IEnumerable<CustomAttribute> read;
IEnumerable<CustomAttribute> Attributes { get; }
var Attributes: IEnumerable<CustomAttribute> { get{} }
IEnumerable<CustomAttribute> Attributes { __get; }
DeclaringType (declared in MemberInfo)
Returns the declaring type.
property DeclaringType: Type read;
Type DeclaringType { get; }
var DeclaringType: Type { get{} }
Type DeclaringType { __get; }
Flags
Contains the flags of this fiedl.
property Flags: FieldFlags read;
FieldFlags Flags { get; }
var Flags: FieldFlags { get{} }
FieldFlags Flags { __get; }
InstanceOffset
If this field is an instance field it contains the offset of this field relative to the start of the class/record.
property InstanceOffset: Int32 read;
Int32 InstanceOffset { get; }
var InstanceOffset: Int32 { get{} }
Int32 InstanceOffset { __get; }
IsStatic override virtual
Contains true if this field is static.
property IsStatic: Boolean read;
Boolean IsStatic { get; }
var IsStatic: Boolean { get{} }
Boolean IsStatic { __get; }
Name (declared in MemberInfo)
Name of this member.
StaticValuePointer
Contains a pointer to where this field is stored (if static)
property StaticValuePointer: ^void read;
void* StaticValuePointer { get; }
var StaticValuePointer: UnsafeMutablePointer<void> { get{} }
void* StaticValuePointer { __get; }
Type (declared in MemberInfo)
Type of this member. Could be nil if the type is never used.
ReferenceEquals (declared in Object)
Compares two references for equivalence (even if they have an equals operator)
Parameters:
- a: left value
- b: right value
constructor (declared in Object)
Default constructor.
constructor
FieldInfo()
init()
FieldInfo()
Equals virtual (declared in Object)
Returns true if the target object matches this one, by default compares the reference.
Parameters:
- obj: the reference to compare this with.
Finalize protected virtual (declared in Object)
Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.
method Finalize
void Finalize()
func Finalize()
void Finalize()
GetHashCode virtual (declared in Object)
Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.
GetType (declared in Object)
Returns the actual type of this class
GetValue
Returns the value of a field for a given instance, the instance should be nil for static fields.
Parameters:
- aInst:
SetValue
Sets the value of a field for a given instance, the instance should be nil for static fields.
Parameters:
- aInst:
- aValue:
ToString virtual (declared in Object)
Gets the string representation of this method.