UnaryDelegate<TArg,TResult> UnaryDelegate<TArg,TResult> UnaryDelegate<TArg,TResult> 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

A_0

The delegate argument.

Return Value

TResult

The return type of the delegate.

Inheritance
UnaryDelegate<TArg,TResult>UnaryDelegate<TArg,TResult>UnaryDelegate<TArg,TResult>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) GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate)

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

Applies to