Microsoft's example of Expression Bodied Constructors (https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/statements-expressions-operators/expression-bodied-members) shows the following, which works obviously:
public class Location
{
private string locationName;
public Location(string name) => locationName = name;
}
But when I attempt the following, no go:
public class Location
{
private string locationName;
private string locationCountry;
//but what about two variables?
// (the below code does not work, I get "Error CS8179 Predefinedtype 'System.ValueTuple`2' is not defined or imported)
public Location(string ln, string lc) => (locationName, locationCountry) = (ln, ld);
}