Browse documentation

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

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

FieldRef(object, IntPtr)

public FieldRef(object @object, IntPtr method)

Parameters

object object
method IntPtr

Methods

BeginInvoke(AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(AsyncCallback callback, object @object)

Parameters

callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual ref F EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

F

Invoke()

public virtual ref F Invoke()

Returns

F
Harmony 3 preview

For the stable release, read the 2.x documentation.