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

◆ combine() [1/2]

template<typename result_t , typename... arguments_t>
static delegate xtd::delegate< result_t(arguments_t...)>::combine ( const std::vector< delegate< result_t(arguments_t...)> > &  delegates)
inlinestaticnoexcept

Concatenates the invocation lists of an array of delegates.

Parameters
delegatesThe array of delegates to combine.
Returns
Delegate A new delegate with an invocation list that concatenates the invocation lists of the delegates in the delegates array. Returns null if delegates is null, if delegates contains zero elements, || if every entry in delegates is null.
Remarks
If the delegates array contains entries that are null, those entries are ignored.
The invocation list can contain duplicate entries; that is, entries that refer to the same method on the same object.