switch case statement
If you face an error like "Control Cannot fall from one case lable ('case:1') to another" while using switch statement in C# then the reason for that is you are not using a break statement after every case and compiler tells you that in case of switch statement the flow cannot continue from one case to annother...
Well VB.Net folks don't have that problem... Btw do make sure that you always have a default:break; statement for failover situations in the switch...
PS: I know this tip has silly, (everyone knows kind of) information but I got a little bit busy with my photography... The same no work on weekend philosophy...
No comments:
Post a Comment