summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--csharp.html.markdown8
1 files changed, 8 insertions, 0 deletions
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;