f#? For example: c# function returns (string error, Sale sale). I need to check in f# result tuple for error and if it is empty, execute some function with sale object as parameter.
C# Tuple class is actually equivalent to F# one. What you need is to convert a ValueTuple (based on the example you provided) to a Tuple, which should be a simple thing to do, and then apply your conditions
let struct(error,sale) = csharpFunction()
Обсуждают сегодня