I'm trying ValueTuple Class in C#, and i have a doubt about properties naming, let's see:
If instantiate a ValueTuple declaring the object like this: var tuple1 = (Name: "Name1", Age: 25);
We can name the properties,
but, like this: ValueTuple<string,int> tuple2 = (Name: "Name1", Age: 25);
we get a warning that says the names are ignored,so
We should type: ValueTuple<string,int> tuple2 = ("Name1",25);
Then the properties will be tuple2.Item1 and tuple2.Item2
Can someone explain this newbie the reason about this?
Than you in advantage