I am trying to do some interop between C# and F# in Mono. Is there a System.Tuple in Mono C#? I can see the one in Mono.CSharp, but that doesn't seem to be the same type as F# (a' * b'). So,
(a) Is there a System.Tuple in Mono C# or (b) Is there a cast between tuples in Mono C# and F#?
A tuple is a data structure that has a specific number and sequence of elements.
The Tuple class is part of the System namespace.
The word "tuple" in C# refers to a data structure which may consist of multiple parts. This data structure may or may not be a dataset with multiple values. Tuples were first introduced with . NET framework 4.0, and they allow a maximum of 8 elements.
Tuple types are reference types. System. ValueTuple types are mutable.
Yes Mono supports a Tuple
type. I know it's in 4.0 but I've seen comments of it's availability since version 2.6.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With