BinaryDelegate<TArg1,TArg2,TResult> Delegate

Definition

Describes a two-argument delegate. You use it to specify the arguments and return type of the delegate.

C#
public delegate TResult BinaryDelegate<TArg1,TArg2,TResult>(TArg1 unnamedParam1, TArg2 unnamedParam2);
C#
public delegate TResult BinaryDelegate<TArg1,TArg2,TResult>(TArg1 A_0, TArg2 A_1);

Type Parameters

TArg1

The type of the first delegate argument.

TArg2

The type of the second delegate argument.

TResult

The return type of the delegate.

Parameters

unnamedParam1A_0
TArg1

The first argument of the delegate.

unnamedParam2A_1
TArg2

The second argument of the delegate.

Return Value

TResult

The return type of the delegate.

Remarks

This delegate is the generic equivalent of the STL/CLR binary_delegate class. For more information, see binary_delegate (STL/CLR).

Extension Methods

GetMethodInfo(Delegate)

Gets an object that represents the method represented by the specified delegate.

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1