KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm curious about this thing... see example: switch(x) { case(a): { //do stuff } break; case(b): //do stuff break; } All my life I've done it like case b, but since C# allows me to use it, and Visual Studio allows me to collapse that thing, I am curious - what is the real difference between case a (with braces) and case b?
Tags (comma-separated)
Save Edits
Cancel