Cuemon .NET Framework
TryExecuteFunction<T1,T2,TResult>(Doer<T1,T2,TResult>,T1,T2,TResult) Method

The type of the first parameter of the method.
The type of the second parameter of the method.
The type of the return value of the method.
The function delegate to invoke to try and get the TResult.
The first parameter of the method.
The second parameter of the method.
When this method returns, contains the TResult from method, or default(TResult) if an exception is thrown.
Returns a value that indicates whether the specified method can be invoked without an exception.
Syntax
'Declaration
 
Public Overloads Shared Function TryExecuteFunction
    (Of T1,T2,TResult)( _
   ByVal method As Cuemon.Doer(Of T1,T2,TResult), _
   ByVal arg1 As T1, _
   ByVal arg2 As T2, _
   ByRef result As TResult _
) As Boolean
public static bool TryExecuteFunction<T1,T2,TResult>( 
   Cuemon.Doer<T1,T2,TResult> method,
   T1 arg1,
   T2 arg2,
   out TResult result
)

Parameters

method
The function delegate to invoke to try and get the TResult.
arg1
The first parameter of the method.
arg2
The second parameter of the method.
result
When this method returns, contains the TResult from method, or default(TResult) if an exception is thrown.

Type Parameters

T1
The type of the first parameter of the method.
T2
The type of the second parameter of the method.
TResult
The type of the return value of the method.

Return Value

true if an instance of TResult has been created; otherwise false.
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

TesterDoerUtility Class
TesterDoerUtility Members
Overload List

 

 


| 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