Hi,
I like the idea of having only 1 return statement per method.
What do you do in this situation though?
public static string ChopText(string Text)
{
if(String.IsNullOrEmpty(Text)
{
// return here ?????//
}
}
The only alternative I can think of is setting a flag, and then checking for the flag.
Problem is, I don't like having huge if statements that span more than a page. I might ugly nested if statements also as a result of this.