This documentation is archived and is not being maintained.

UnaryDelegate<TArg, TResult> Delegate

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

Namespace:  Microsoft.VisualC.StlClr
Assembly:  Microsoft.VisualC.STLCLR (in Microsoft.VisualC.STLCLR.dll)

generic<typename TArg, typename TResult>
public delegate TResult UnaryDelegate(
	TArg param0
)

Type Parameters

TArg

The type of the delegate argument.

TResult

The return type of the delegate.

Parameters

param0
Type: TArg
The delegate argument.

Return Value

Type: TResult
The return type of the delegate.

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

.NET Framework

Supported in: 4, 3.5

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: