How to eliminate "else-if" statements.
- by Stremlenye
My function get QueryString from some Web page as a string.
I need to parce it, to check, what strategy i must use.
Now my code looks ugly (i think so):
public QueryStringParser(string QueryString)
{
if (string.IsNullOrEmpty(QueryString))
{
this._mode = Mode.First;
}
else if…