Combine

Convenience function for static .NET System.Delegate Combine method

Syntax

result = Combine(delegateA,delegateB)

Description

result = Combine(delegateA,delegateB) combines two delegates into a new delegate.

Input Arguments

delegateA

.NET System.Delegate object. The first delegate in the new delegate.

delegateB

.NET System.Delegate object. The last delegate in the new delegate.

Output Arguments

result

.NET System.Delegate object. A new delegate that delegates to the input delegate delegateA, then delegateB

Alternatives

Use the static Combine method of the System.Delegate class.

Introduced in R2011a