Delegate AccessTools.FieldRef<T, F>
A read/writable reference to an instance field
Namespace: HarmonyLib
Assembly: 0Harmony.dll
Syntax
public delegate F FieldRef<T, F>(T obj = null);
Parameters
| Type | Name | Description |
|---|---|---|
| T | obj | The runtime instance to access the field (leave empty for static fields) |
Returns
| Type | Description |
|---|---|
| F | An readable/assignable object representing the field |
Type Parameters
| Name | Description |
|---|---|
| T | The class the field is defined in or "object" if type cannot be accessed at compile time |
| F | The type of the field |