BinaryDelegate<TArg1,TArg2,TResult> Delegar

Definição

Descreve um delegado com dois argumentos.Describes a two-argument delegate. É possível usá-lo para especificar os argumentos e o tipo de retorno do delegado.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 , TArg2 );
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 , TArg2 );
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)( As TArg1,  As TArg2) As TResult 
Public Delegate Function BinaryDelegate(Of TArg1, TArg2, TResult)(A_0 As TArg1, A_1 As TArg2) As TResult 

Parâmetros de tipo

TArg1

O tipo do primeiro argumento delegado.The type of the first delegate argument.

TArg2

O tipo do segundo argumento delegado.The type of the second delegate argument.

TResult

O tipo de retorno do delegado.The return type of the delegate.

Parâmetros

A_0
TArg1
A_1
TArg2

Valor Retornado

TResult

O tipo de retorno do delegado.The return type of the delegate.

Comentários

Esse delegado é o equivalente genérico da classe STL/CLR binary_delegate .This delegate is the generic equivalent of the STL/CLR binary_delegate class. Para obter mais informações, consulte binary_delegate (STL/CLR).For more information, see binary_delegate (STL/CLR).

Métodos de Extensão

GetMethodInfo(Delegate)

Obtém um objeto que representa o método representado pelo delegado especificado.Gets an object that represents the method represented by the specified delegate.

Aplica-se a