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
-
AnyMemberInfoFieldInfo
Properties
property FieldType: System.Type
#
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>
#
Private and internal members (3)
field fieldType: System.Type
#
constructor FieldInfo(declaring: System.Type, name: System.String<u8>, flags: i32, describer: System.Reflection.TypeDescriber, index: i32, fieldType: System.Type)
#
Inherited members (11)
GetCustomAttributesmethod from MemberInfoGetCustomAttributesmethod from MemberInfoIsDefinedmethod from MemberInfoNameproperty from MemberInfoDeclaringTypeproperty from MemberInfoIsPublicproperty from MemberInfoIsStaticproperty from MemberInfoGetTypemethod from AnyUndescribedmethod from AnyHashmethod from Anydestroymethod from Any
Source
FieldInfo as Larva HIR, decompiled from its Larva 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
}