Click here to Skip to main content
15,667,536 members
Articles / Programming Languages / C#

Tagged as

Stats

5.9K views
2 bookmarked

The goto-less goto!

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
3 Feb 2011CPOL
In C#, you can always use try..finally to add some finalization code.Just write:bool bFailed = true; try{ if(condition1_fails) return; ... if(condition2_fails) return; ... ... if(conditionN_fails) ...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Unknown
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions