DelegateExtensionsCombine Method

Concatenates the invocation lists of the source Delegate with another Delegate.

Definition

Namespace: DevCase.Extensions.DelegateExtensions
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static Delegate Combine(
	this Delegate source,
	Delegate target
)

Parameters

source  Delegate
The source Delegate whose invocation list comes first.
target  Delegate
The Delegate whose invocation list comes last.

Return Value

Delegate
A new delegate with an invocation list that concatenates the invocation lists of source and target in that order.

Returns source if target is ,

returns target if source is a null reference,

and returns a null reference if both source and target are null references.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Delegate. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also