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

The type of the first 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.
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 T,TResult)( _
   ByVal method As Cuemon.Doer(Of T,TResult), _
   ByVal arg As T, _
   ByRef result As TResult _
) As Boolean
public static bool TryExecuteFunction<T,TResult>( 
   Cuemon.Doer<T,TResult> method,
   T arg,
   out TResult result
)

Parameters

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

Type Parameters

T
The type of the first 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