This commit is contained in:
Oli Sturm
2022-05-12 16:35:34 +01:00
parent eecba258b3
commit 0a28574514
3 changed files with 10 additions and 3 deletions
+2 -2
View File
@@ -5,7 +5,7 @@
{
1 => 2,
2 => 3,
_ => throw new ArgumentException("Weiter geht's nicht")
_ => throw new ArgumentException("Rien ne va plus")
};
// Property Pattern:
@@ -34,7 +34,7 @@
Address = new Address { City = "Castle Douglas", Country = "UK" }
};
if (customer is { Address: { City: "Castle Douglas" } }) {
Console.WriteLine("Dieser Kunde wohnt gleich um die Ecke");
Console.WriteLine("This customer lives around the corner");
}
}
}