Delegate AccessTools.StructFieldRef<T, F>
- Namespace
- HarmonyLib
- Assembly
- 0Harmony.dll
A readable/assignable reference delegate to an instance field of a struct
public delegate ref F AccessTools.StructFieldRef<T, F>(ref T instance) where T : struct
Parameters
instanceTA reference to the runtime instance to access the field
Returns
- F
A readable/assignable reference to the field
Type Parameters
TThe struct that defines the instance field
FThe 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
StructFieldRef(object, IntPtr)
public StructFieldRef(object @object, IntPtr method)
Parameters
objectobjectmethodIntPtr
Methods
BeginInvoke(ref T, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(ref T instance, AsyncCallback callback, object @object)
Parameters
instanceTcallbackAsyncCallbackobjectobject
Returns
- IAsyncResult
EndInvoke(ref T, IAsyncResult)
public virtual ref F EndInvoke(ref T instance, IAsyncResult result)
Parameters
instanceTresultIAsyncResult
Returns
- F
Invoke(ref T)
public virtual ref F Invoke(ref T instance)
Parameters
instanceT
Returns
- F