xtd 0.2.0
Loading...
Searching...
No Matches

◆ combine() [2/2]

template<typename result_t >
static delegate xtd::delegate< result_t()>::combine ( const delegate< result_t()> &  a,
const delegate< result_t()> &  b 
)
inlinestaticnoexcept

Concatenates the invocation lists of two delegates.

Parameters
aThe delegate whose invocation list comes first.
bThe delegate whose invocation list comes second.
Returns
delegateType A new delegate with an invocation list that concatenates the invocation lists of a and b in that order. Returns a if b is null, returns b if a is a null reference, and returns a null reference if both a and b are null references.
Remarks
The invocation list can contain duplicate entries; that is, entries that refer to the same method on the same object.