Delegate AccessTools.StructFieldRef<T, F>
A readable/assignable reference delegate to an instance field of a struct
Assembly: 0Harmony.dll
public delegate ref F AccessTools.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 is assignable from that type; or if the field's type is an enum type,
either that type or the underlying integral type of that enum type
|
Constructors
Declaration
public StructFieldRef(object @object, IntPtr method)
Parameters
Type |
Name |
Description |
object |
object |
|
IntPtr |
method |
|
Methods
Declaration
public virtual IAsyncResult BeginInvoke(ref T instance, AsyncCallback callback, object @object)
Parameters
Type |
Name |
Description |
T |
instance |
|
AsyncCallback |
callback |
|
object |
object |
|
Returns
Type |
Description |
IAsyncResult |
|
Declaration
public virtual ref F EndInvoke(ref T instance, IAsyncResult result)
Parameters
Type |
Name |
Description |
T |
instance |
|
IAsyncResult |
result |
|
Returns
Declaration
public virtual ref F Invoke(ref T instance)
Parameters
Type |
Name |
Description |
T |
instance |
|
Returns