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 66127c8 commit 19a1660Copy full SHA for 19a1660
docs/csharp/tour-of-csharp/tutorials/snippets/PatternMatching/Program.cs
@@ -75,7 +75,7 @@
75
Console.WriteLine($"{transaction.type} => Parsed Amount: {transaction.amount}, New Balance: {currentBalance}");
76
}
77
78
-// <UseRecords>
+// <TypePattern>
79
currentBalance = 0.0;
80
81
foreach (var transaction in TransactionRecordType(bankRecords))
@@ -88,7 +88,7 @@
88
};
89
Console.WriteLine($" {transaction} => New Balance: {currentBalance}");
90
91
-// </UseRecords>
+// </TypePattern>
92
93
// <ParseTransaction>
94
static IEnumerable<(TransactionType type, double amount)> TransactionRecords(string inputText)
0 commit comments