docs/api/HarmonyLib.AccessTools.StructFieldRef-2.html
A readable/assignable reference delegate to an instance field of a struct
public delegate F StructFieldRef<T, F>(ref T instance)
where T : struct;
| Type | Name | Description |
|---|---|---|
| T | instance |
A reference to the runtime instance to access the field
|
| Type | Description |
|---|---|
| F |
A readable/assignable reference to the field
|
| 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) that type; or if the field's type is an enum type, either that type or the underlying integral type of that enum type
|
public StructFieldRef(object object, IntPtr method)
| Type | Name | Description |
|---|---|---|
| System.Object | object | |
| System.IntPtr | method |
public virtual IAsyncResult BeginInvoke(ref T instance, AsyncCallback callback, object object)
| Type | Name | Description |
|---|---|---|
| T | instance | |
| System.AsyncCallback | callback | |
| System.Object | object |
| Type | Description |
|---|---|
| System.IAsyncResult |
public virtual F EndInvoke(ref T instance, IAsyncResult result)
| Type | Name | Description |
|---|---|---|
| T | instance | |
| System.IAsyncResult | result |
| Type | Description |
|---|---|
| F |
public virtual F Invoke(ref T instance)
| Type | Name | Description |
|---|---|---|
| T | instance |
| Type | Description |
|---|---|
| F |