Background: I am using two methods from different libraries; one uses System.Tuple<double,double> and the other uses (double,double) for arguments. I am finding myself unable to utilize both methods without doing extra work to convert a System.Tuple to a (,).
What is the difference between System.Tuple<t1,t2> and (t1,t2)?
(t1,t2) is a ValueTuple<,> not a Tuple<,>
So doing the following will work:
ValueTuple<int, int> hey = (1, 2);
However, this will give you a type error
Tuple<int, int> hey = (1, 2);
More information on the difference between ValueTuple and Tuple can be found on this question/answers What's the difference between System.ValueTuple and System.Tuple?
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