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

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static Delegate Combine(
	Delegate a,
	Delegate b
)

Parameters

a
Type: SystemDelegate
The delegate whose invocation list comes first.
b
Type: SystemDelegate
The delegate whose invocation list comes last.

Return Value

Type: Delegate
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.
Exceptions
ExceptionCondition
ArgumentExceptionBoth a and b are not null, and a and b are not instances of the same delegate type.
See Also