Cuemon .NET Framework
Doer<T1,T2,TResult> Delegate

The type of the first parameter of the method that this function delegate encapsulates.
The type of the second parameter of the method that this function delegate encapsulates.
The type of the return value of the method that this function delegate encapsulates.
The first parameter of the method that this function delegate encapsulates.
The second parameter of the method that this function delegate encapsulates.
Encapsulates a method that has two parameters and returns a value of the type specified by the TResult parameter.
Syntax
'Declaration
 
Public Delegate Function Doer
    (Of T1,T2,TResult)( _
   ByVal arg1 As T1, _
   ByVal arg2 As T2 _
) As TResult
public delegate TResult Doer<T1,T2,TResult>( 
   T1 arg1,
   T2 arg2
)

Parameters

arg1
The first parameter of the method that this function delegate encapsulates.
arg2
The second parameter of the method that this function delegate encapsulates.

Type Parameters

T1
The type of the first parameter of the method that this function delegate encapsulates.
T2
The type of the second parameter of the method that this function delegate encapsulates.
TResult
The type of the return value of the method that this function delegate encapsulates.

Return Value

The return value of the method that this function delegate encapsulates.
Remarks
This function delegate is equivalent to Func{TResult} in .NET 3.5 (and newer) and for the same reason renamed to avoid naming conflict. The noun Doer was carefully selected to reflect a go-getter; a method that does something and then returns the result as part of a job. This fits perfectly for a generic function delegate.
Requirements

Target Platforms: Windows 8, Windows Server 2012, 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

See Also

Reference

Doer<T1,T2,TResult> Members
Cuemon Namespace

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback