DelegateCombine Method (Delegate, Delegate) |
Concatenates the invocation lists of two delegates.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax 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:
DelegateA 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 Exception | Condition |
---|
ArgumentException | Both a and b are not null, and a and b are not instances of the same delegate type. |
See Also