Consider the two samples.
*1.*
void/object function()
{
if(cond1)
{
  ---
  return;
}
if(cond2)
{
  ---
  return;
}
if(cond3)
{
  ---
  return;
}
return;
}

*2.*
void/object function()
{
if(cond1)
{
  ---
}
else if(cond2)
{
  ---
}
else if(cond3)
{
  ---
}
return;
}


I have doubt in mind weather this two make a difference in call stack etc..
Or the performance and work load is same for both flow?

-- 

Santhosh V
http://techplex.wordpress.com

Reply via email to