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 A_0);
public delegate TResult UnaryDelegate<TArg,TResult>(TArg A_0);
type UnaryDelegate<'Arg, 'Result> = delegate of 'Arg -> 'Result
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

Return Value

TResult

The return type of the delegate.

Inheritance
UnaryDelegate<TArg,TResult>

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