Delegate AccessTools.FieldRef<F>
- Namespace
- HarmonyLib
- Assembly
- 0Harmony.dll
A readable/assignable reference delegate to a static field
public delegate ref F AccessTools.FieldRef<F>()
Returns
- F
A readable/assignable reference to the field
Type Parameters
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
FieldRef(object, IntPtr)
public FieldRef(object @object, IntPtr method)
Parameters
objectobjectmethodIntPtr
Methods
BeginInvoke(AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(AsyncCallback callback, object @object)
Parameters
callbackAsyncCallbackobjectobject
Returns
- IAsyncResult
EndInvoke(IAsyncResult)
public virtual ref F EndInvoke(IAsyncResult result)
Parameters
resultIAsyncResult
Returns
- F
Invoke()
public virtual ref F Invoke()
Returns
- F