class · System.Reflection

FieldInfo

public class System.Reflection.FieldInfo : System.Reflection.MemberInfo

A field: its type, and its value in an object (GetValue(obj); null for a static field).

Kind
class
Namespace
System.Reflection
Assembly
System.Core
Access
public, final
Source file
Reflection.ant

Inheritance

Base classes
Any MemberInfo FieldInfo

Properties

property FieldType: System.Type
#

read-only

property IsInitOnly: bool
#

read-only

Set only by constructors (readonly).

Methods

method GetValue(target: System.Any?) -> System.Any?
#

The field's value in target (boxed when it is a value).

method SetValue(target: System.Any?, value: System.Any?) -> void
#

Sets the field in target to value (which must be of the field's type).

method ToString() -> System.String<u8>
#

override

Private and internal members (3)

field fieldType: System.Type
#

private

constructor FieldInfo(declaring: System.Type, name: System.String<u8>, flags: i32, describer: System.Reflection.TypeDescriber, index: i32, fieldType: System.Type)
#

internal

method AttributeKey() -> i32
#

internal override

Inherited members (11)

Source

FieldInfo as Larva HIR, decompiled from its Larva HIR.

System.Reflection.FieldInfo.hir
// A field: its type, and its value in an object (`GetValue(obj)`; null for a static field).
public class System.Reflection.FieldInfo : System.Reflection.MemberInfo
{
    field fieldType: System.Type
    constructor FieldInfo(declaring: System.Type, name: System.String<u8>, flags: i32, describer: System.Reflection.TypeDescriber, index: i32, fieldType: System.Type)
    method AttributeKey() -> i32
    // The field's value in `target` (boxed when it is a value).
    method GetValue(target: System.Any?) -> System.Any?
    // Sets the field in `target` to `value` (which must be of the field's type).
    method SetValue(target: System.Any?, value: System.Any?) -> void
    method ToString() -> System.String<u8>
    property FieldType: System.Type
    // Set only by constructors (`readonly`).
    property IsInitOnly: bool
}
Esc