Delegate AccessTools.StructFieldRef<T, F>
A readable/assignable reference delegate to an instance field of a struct
Namespace: HarmonyLib
Assembly: 0Harmony.dll
Syntax
public delegate F StructFieldRef<T, F>(ref T instance)
where T : struct;
Parameters
| Type | Name | Description |
|---|---|---|
| T | instance | A reference to the runtime instance to access the field |
Returns
| Type | Description |
|---|---|
| F | A readable/assignable reference to the field |
Type Parameters
| Name | Description |
|---|---|
| T | The struct that defines the instance field |
| F | The type of the field; or if the field's type is a reference type (a class or interface, NOT a struct or other value type), a type that System.Type.IsAssignableFrom(System.Type) the field's type |