class ManagedFieldInfo

Inherits: ManagedMemberInfo

Contains data about a single field in a managed object (class or struct).

Public

Constructors

ManagedFieldInfo

ManagedFieldInfo() = default

Methods

GetAttribute

MonoObject *GetAttribute(MonoClass *monoClass) const override

Checks if the attribute of the provided type exists on the member and returns it, or returns null if the attribute is not present.

GetValue

MonoObject *GetValue(MonoObject *instance) const override

Returns a boxed value contained in the member in the specified object instance.

instance
Object instance to access the member on.

Returns: A boxed value of the member.

SetUnboxedValue

void SetUnboxedValue(MonoObject *instance, void *value) const override

Sets a value of the member in the specified object instance.

instance
Object instance to access the member on.
value
Value to set on the member. For value type it should be a pointer to the value and for reference type it should be a pointer to MonoObject.

staticGetRttiStatic

static RTTIType *GetRttiStatic()

GetRtti

RTTIType *GetRtti() const override

Returns an interface you can use to access class' Run Time Type Information.

Fields

ScriptField

MonoField * ScriptField