From 85a5809405e834558b2b5c556449186f28471dc8 Mon Sep 17 00:00:00 2001 From: James Groom Date: Thu, 9 Mar 2023 23:40:37 +1000 Subject: [PATCH] Updated C# and .NET docs supplement (markdown) --- C#-and-.NET-docs-supplement.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/C#-and-.NET-docs-supplement.md b/C#-and-.NET-docs-supplement.md index db8b33b..f922dda 100644 --- a/C#-and-.NET-docs-supplement.md +++ b/C#-and-.NET-docs-supplement.md @@ -11,6 +11,10 @@ To save us repeating our complaints about the lack of proper documentation under see [feature matrix](https://github.com/TASEmulators/BizHawk/wiki/Available-C%23-and-.NET-features) page +## Guarded `default` in `switch` statements + +You can only have 1 `default` branch, but `case _ when ...:` doesn't work. However, `case var _ when ...:` does. + ## MSBuild `Condition` placement On (older versions of?) VS, `Condition` is ignored if placed on a property. Create a new ``.