DelegateCombine Method (Delegate) |
Concatenates the invocation lists of an array of delegates.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static Delegate Combine(
params Delegate[] delegates
)
Parameters
- delegates
- Type: SystemDelegate
The array of delegates to combine.
Return Value
Type:
DelegateA 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, or if every entry in
delegates is null.
Exceptions Exception | Condition |
---|
ArgumentException | Not all the non-null entries in delegates are instances of the same delegate type. |
See Also