C-DEngine 5.105

TheCommonUtils..::..DoFireEvent<(Of <(<'T>)>)> Method (Action<(Of <(<'T>)>)>, T, Boolean, Int32)

New in V4.105: Allows to fire a generic event on all supported platforms

Namespace:  nsCDEngine.BaseClasses
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static void DoFireEvent<T>(
	Action<T> action,
	T para,
	bool FireAsync,
	int pFireEventTimeout
)
Public Shared Sub DoFireEvent(Of T) ( _
	action As Action(Of T), _
	para As T, _
	FireAsync As Boolean, _
	pFireEventTimeout As Integer _
)
public:
generic<typename T>
static void DoFireEvent(
	Action<T>^ action, 
	T para, 
	bool^ FireAsync, 
	int^ pFireEventTimeout
)

Type Parameters

T

Parameters

action
Type: Action<(Of <(<'T>)>)>
Callback to be fired by the Event
para
Type: T
Parameter of same type as action() parameter
FireAsync
Type: Boolean
if true, the event is fired asynch
pFireEventTimeout
Type: Int32
if larger