BinaryDelegate<TArg1,TArg2,TResult> 委托

定义

描述双参数委托。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 A_0, TArg2 A_1);
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)(A_0 As TArg1, A_1 As TArg2) As TResult 

类型参数

TArg1

第一个委托参数。The first delegate argument.

TArg2

第二个委托参数。The second delegate argument.

TResult

委托的返回类型。The return type of the delegate.

参数

A_0

第一个参数。The first argument.

A_1

第二个参数。The second argument.

返回值

TResult

委托的返回类型。The return type of the delegate.

继承
BinaryDelegate<TArg1,TArg2,TResult>

注解

此委托是与 STL/CLR binary_delegate类等效的泛型。This delegate is the generic equivalent of the STL/CLR binary_delegate class. 有关详细信息,请参阅binary_delegate (STL/CLR)For more information, see binary_delegate (STL/CLR).

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于