Skip to content

DelegateEx ​

Kind: Static class

Namespace: CrowdControl.Common

Public Static Functions

void

If(bool cond, Action thenExpr)

void

If(bool cond, Action thenExpr, Action elseExpr)

T

If<T>(bool cond, Func thenExpr, Func elseExpr)

T

Unless<T>(bool cond, Func thenExpr, Func elseExpr)

bool

TryMulticastInvokeSafe<T>(Func event, T e, T initialVaue, Func aggregator, T out result)

bool

TryMulticastInvokeSafe<T1, T2>(Func event, T1 e, T2 initialVaue, Func aggregator, T2 out result)

Delegate

Cast(Delegate source, Type type)

T

Cast<T>(Delegate source)

void

SetTarget(Delegate del, object target)