Is it possible to have a switch in C# which checks if the value is null or empty not "" but String.Empty? I know i can do this:
switch (text)
{
case null:
case "":
break;
}
Is there something better, because I don't want to have a large list of IF statements.
im trying to replace:
if (String.IsNullOrEmpty(text))
blah;
else if (text = "hi")
blah