Delegate TryGet<T1, T2, T3, TResult>
- Namespace
- SodaFlow.Functional
- Assembly
- SodaFlow.Functional.dll
A method that gives a value from three 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, in T3, TResult>(T1 value1, T2 value2, T3 value3, out TResult result)
Parameters
value1T1The first input.
value2T2The second input.
value3T3The third 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.
T3The type of the third input.
TResultThe type of the value produced.
- Extension Methods
Remarks
TryParse(string, NumberStyles, IFormatProvider, out int) has this shape.