Browse documentation

Delegate RefResult<T>

Namespace
HarmonyLib
Assembly
0Harmony.dll

Delegate type for "ref return" injections

public delegate ref T RefResult<T>()

Returns

T
Delegate type for "ref return" injections

Type Parameters

T

Return type of the original method, without ref modifier

Constructors

RefResult(object, IntPtr)

public RefResult(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 T EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

T

Invoke()

public virtual ref T Invoke()

Returns

T
Harmony 3 preview

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