How to cancel the execution of a method?
<p>Consider i execute a method 'Method1' in C#.
Once the execution goes into the method i check few condition and if any of them is false, then the execution of  Method1 should be stopped. how can i do this, i.e can the execution of a method when certain conditions are met.?</p>

<p>but my code is something like this,</p>

<pre><code>int Method1()
{
switch(exp)
{
case 1:
if(condition)
 //do the following
**else
//Stop executing the method.**
case2:
...
}
}
</code></pre>
