We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22cfc48 commit 854d444Copy full SHA for 854d444
docs/csharp/fundamentals/types/snippets/anonymous-types/Program.cs
@@ -74,15 +74,15 @@ static void TupleDeconstructionExamples()
74
75
// <TupleDeconstructionLoop>
76
var people = new List<(string Name, int Age)>
77
- [
+ {
78
("Bob", 25),
79
("Carol", 35),
80
("Dave", 40)
81
- ];
+ };
82
83
- foreach (var (name, age) in people)
+ foreach (var (personName2, personAge2) in people)
84
{
85
- Console.WriteLine($"{name} is {age} years old");
+ Console.WriteLine($"{personName2} is {personAge2} years old");
86
}
87
// </TupleDeconstructionLoop>
88
0 commit comments