From 67b9af44925a66ac0dc278050bcaaa80fd50f21c Mon Sep 17 00:00:00 2001 From: Melvyn Date: Sat, 21 Sep 2013 15:39:59 -0400 Subject: [PATCH] added details for the switch statement for C# --- csharp.html.markdown | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/csharp.html.markdown b/csharp.html.markdown index 7239ca52..dcbb30d1 100644 --- a/csharp.html.markdown +++ b/csharp.html.markdown @@ -343,6 +343,14 @@ namespace Learning case 3: monthString = "March"; break; + // You can assign more than one case to an action + // But you can't add an action without a break before another case + // (if you want to do this, you would have to explicitly add a goto case x + case 6: + case 7: + case 8: + monthString = "Summer time!!"; + break; default: monthString = "Some other month"; break;