UnaryDelegate<TArg,TResult> Delegate

Definition

Describes a one-argument delegate. You use it to specify the argument and return type of the delegate.

C#
public delegate TResult UnaryDelegate<TArg,TResult>(TArg unnamedParam1);
C#
public delegate TResult UnaryDelegate<TArg,TResult>(TArg A_0);

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

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1