UnaryDelegate<TArg,TResult> 委托
定义
描述单参数委托。Describes a one-argument delegate. 使用它来指定委托的参数和返回类型。You use it to specify the argument and return type of the delegate.
generic <typename TArg, typename TResult>
public delegate TResult UnaryDelegate(TArg );
generic <typename TArg, typename TResult>
public delegate TResult UnaryDelegate(TArg A_0);
public delegate TResult UnaryDelegate<TArg,TResult>(TArg );
public delegate TResult UnaryDelegate<TArg,TResult>(TArg A_0);
type UnaryDelegate<'Arg, 'Result> = delegate of 'Arg -> 'Result
Public Delegate Function UnaryDelegate(Of TArg, TResult)( As TArg) As TResult
Public Delegate Function UnaryDelegate(Of TArg, TResult)(A_0 As TArg) As TResult
类型参数
- TArg
参数的类型。The type of the delegate argument.
- TResult
委托的返回类型。The return type of the delegate.
参数
- A_0
- TArg
返回值
- TResult
委托的返回类型。The return type of the delegate.
注解
此委托是与 STL/CLR 类等效的泛型 unary_delegate 。This delegate is the generic equivalent of the STL/CLR unary_delegate class. 有关详细信息,请参阅 STL/CLR) unary_delegate (。For more information, see unary_delegate (STL/CLR).
扩展方法
| GetMethodInfo(Delegate) |
获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate. |