Click or drag to resize

AsyncActivatorCreateAsyncT, TArg Method (TArg)

Asynchronously creates and initializes an instance of the specified type.

Namespace:  Ditto.AsyncInit
Assembly:  Ditto.AsyncInit (in Ditto.AsyncInit.dll) Version: 1.5.0.2281
Syntax
public static Task<T> CreateAsync<T, TArg>(
	TArg arg
)
where T : Object, IAsyncInit<TArg>

Parameters

arg
Type: TArg
The initialization argument.

Type Parameters

T
The type of object to create (must implement IAsyncInitTArg).
TArg
The type of the initialization argument.

Return Value

Type: TaskT
A Task capturing the initialization.
See Also