Geeks With Blogs
BizTalk Blog by Chris Han System Design for Enterprise Agility,
July 2006 Entries
Bad mix: Enumeration and Switch in C#
“The great power comes with a great responsibility.“ C# as a powerful language has reduced the mistakes in Switch/Case flow control by removing the implicit fall-through behavior. That says you can not pass the compilation without an explicit statement at the end of each case, either a “break”, a “return”, a “goto”, or you can also detour the control flow by “throw” an exception. AS a matter of fact, you should always throw an out-of-boundary ......

Posted On Monday, July 24, 2006 12:55 PM

Copyright © Chris Han | Powered by: