[This is preliminary documentation and is subject to change.]

Universal delegate of function with no argument

Namespace: Tools
Assembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
[ObsoleteAttribute("Use System.Func instead")]
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public delegate TRet dFunction<TRet>()
Visual Basic
<ObsoleteAttribute("Use System.Func instead")> _
<EditorBrowsableAttribute(EditorBrowsableState.Never)> _
Public Delegate Function dFunction(Of TRet) As TRet
Visual C++
[ObsoleteAttribute(L"Use System.Func instead")]
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
generic<typename TRet>
public delegate TRet dFunction()
F#
[<ObsoleteAttribute("Use System.Func instead")>]
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
type dFunction = 
    delegate of unit -> 'TRet
JScript
JScript does not support generic types or methods.

Type Parameters

TRet
Type of return value

See Also