Back to Harmony

Delegate AccessTools.FieldRef<F>

docs/api/HarmonyLib.AccessTools.FieldRef-1.html

2.4.2.01.7 KB
Original Source

Delegate AccessTools.FieldRef<F>

A readable/assignable reference delegate to a static field

Namespace : HarmonyLib
Assembly : 0Harmony.dll
Syntax
public delegate F FieldRef<F>();
Returns
TypeDescription
F

A readable/assignable reference to the field

|

Type Parameters
NameDescription
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

|

Constructors

FieldRef(Object, IntPtr)

Declaration
public FieldRef(object object, IntPtr method)
Parameters
TypeNameDescription
System.Objectobject
System.IntPtrmethod

Methods

BeginInvoke(AsyncCallback, Object)

Declaration
public virtual IAsyncResult BeginInvoke(AsyncCallback callback, object object)
Parameters
TypeNameDescription
System.AsyncCallbackcallback
System.Objectobject
Returns
TypeDescription
System.IAsyncResult

EndInvoke(IAsyncResult)

Declaration
public virtual F EndInvoke(IAsyncResult result)
Parameters
TypeNameDescription
System.IAsyncResultresult
Returns
TypeDescription
F

Invoke()

Declaration
public virtual F Invoke()
Returns
TypeDescription
F