Delegate TryGet<T1, T2, TResult>
- Namespace
- SodaFlow.Functional
- Assembly
- SodaFlow.Functional.dll
A method that gives a value from two inputs if it can. It reports the result through its return value, and gives the value through an output parameter.
public delegate bool TryGet<in T1, in T2, TResult>(T1 value1, T2 value2, out TResult result)
Parameters
value1T1The first input.
value2T2The second input.
resultTResultSet to the value produced when this returns true, and left at the default for its type otherwise.
Returns
Type Parameters
T1The type of the first input.
T2The type of the second input.
TResultThe type of the value produced.
- Extension Methods