Click or drag to resize
DelegateCombine Method (Delegate)
Concatenates the invocation lists of an array of delegates.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static Delegate Combine(
	params Delegate[] delegates
)

Parameters

delegates
Type: SystemDelegate
The array of delegates to combine.

Return Value

Type: 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, or if every entry in delegates is null.
Exceptions
ExceptionCondition
ArgumentExceptionNot all the non-null entries in delegates are instances of the same delegate type.
See Also