Wut? C# besides all other ways to return Tuples, Result<T>s, NULLable, etc, etc.
Still had something as sane as:
if (double.TryParse("5.x5", out var val)) { Console.WriteLine(val); } else { Console.WriteLine("err"); }
C# got Tuple only in version 7.0 which was released in 2017, if you don't know; while TryParse has been there since 1.0 in 2002. And I'd still prefer to have e.g.
if ([double val, bool ok] = double.TryParse("5.x5"); ok) { Console.WriteLine(val); } else { Console.WriteLine("err"); }
C# got Tuple only in version 7.0 which was released in 2017, if you don't know; while TryParse has been there since 1.0 in 2002. And I'd still prefer to have e.g.
Of course, having "var" there would be even nicer.