FuncExtensionsTryTResult Method
Namespace: Jodosoft.PrimitivesAssembly: Jodosoft.Primitives (in Jodosoft.Primitives.dll) Version: 2.0
public static bool Try<TResult>(
this Func<TResult> function,
out TResult result
)
<ExtensionAttribute>
Public Shared Function Try(Of TResult) (
function As Func(Of TResult),
<OutAttribute> ByRef result As TResult
) As Boolean
public:
[ExtensionAttribute]
generic<typename TResult>
static bool Try(
Func<TResult>^ function,
[OutAttribute] TResult% result
)
[<ExtensionAttribute>]
static member Try :
function : Func<'TResult> *
result : 'TResult byref -> bool
- function FuncTResult
-
- result TResult
-
- TResult
BooleanIn Visual Basic and C#, you can call this method as an instance method on any object of type
FuncTResult. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).