Upraviť

Zdieľať cez


UnaryDelegate<TArg,TResult> Delegate

Definition

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 unnamedParam1);
generic <typename TArg, typename TResult>
public delegate TResult UnaryDelegate(TArg A_0);
public delegate TResult UnaryDelegate<TArg,TResult>(TArg unnamedParam1);
public delegate TResult UnaryDelegate<TArg,TResult>(TArg A_0);
type UnaryDelegate<'Arg, 'Result> = delegate of 'Arg -> 'Result
Public Delegate Function UnaryDelegate(Of TArg, TResult)(unnamedParam1 As TArg) As TResult 
Public Delegate Function UnaryDelegate(Of TArg, TResult)(A_0 As TArg) As TResult 

Type Parameters

TArg

The type of the delegate argument.

TResult

The return type of the delegate.

Parameters

unnamedParam1A_0
TArg

The delegate argument.

Return Value

TResult

The return type of the delegate.

Remarks

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

Extension Methods

GetMethodInfo(Delegate)

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

Applies to