With the code below,
class Program
{
static void Main(string[] args)
{
Tuple<int, int> test = TupleTest();
}
static (int, int) TupleTest()
{
return (1, 2);
}
I am getting following compile time error.
Error CS0029 Cannot implicitly convert type '(int, int)' to 'System.Tuple < int, int >'
Does it mean the new version of Tuple is not compatible with the old version implicitly? Or am I doing something wrong here?