Redigeeri

Jagamisviis:


BinaryDelegate<TArg1,TArg2,TResult> Delegate

Definition

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

generic <typename TArg1, typename TArg2, typename TResult>
public delegate TResult BinaryDelegate(TArg1 unnamedParam1, TArg2 unnamedParam2);
generic <typename TArg1, typename TArg2, typename TResult>
public delegate TResult BinaryDelegate(TArg1 A_0, TArg2 A_1);
public delegate TResult BinaryDelegate<TArg1,TArg2,TResult>(TArg1 unnamedParam1, TArg2 unnamedParam2);
public delegate TResult BinaryDelegate<TArg1,TArg2,TResult>(TArg1 A_0, TArg2 A_1);
type BinaryDelegate<'TArg1, 'TArg2, 'Result> = delegate of 'TArg1 * 'TArg2 -> 'Result
Public Delegate Function BinaryDelegate(Of TArg1, TArg2, TResult)(unnamedParam1 As TArg1, unnamedParam2 As TArg2) As TResult 
Public Delegate Function BinaryDelegate(Of TArg1, TArg2, TResult)(A_0 As TArg1, A_1 As TArg2) As TResult 

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