Back to Harmony

Delegate InstantiationHandler<T>

docs/api/HarmonyLib.InstantiationHandler-1.html

2.4.2.01.4 KB
Original Source

Delegate InstantiationHandler<T>

A constructor delegate type

Namespace : HarmonyLib
Assembly : 0Harmony.dll
Syntax
public delegate T InstantiationHandler<out T>();
Returns
TypeDescription
T

An delegate

|

Type Parameters
NameDescription
T

Type that constructor creates

|

Constructors

InstantiationHandler(Object, IntPtr)

Declaration
public InstantiationHandler(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 T EndInvoke(IAsyncResult result)
Parameters
TypeNameDescription
System.IAsyncResultresult
Returns
TypeDescription
T

Invoke()

Declaration
public virtual T Invoke()
Returns
TypeDescription
T