5 ms·
This release also introduces new syntax for tuples (closer to Python) that makes it much more transparent to use them and pretty much thereby introduces multipl
by revelation 10y ago
This release also introduces new syntax for tuples (closer to Python) that makes it much more transparent to use them and pretty much thereby introduces multiple return values.
This is now valid and returns a tuple with named values:
public (string city, string state) GetCityAndState()
{
return ("Lake Charles","Louisiana");
}
And you can get the return values without writing "Tuple<" once.
- maxxxxx 10y agoThis is nice!