Funny piece of C# code I found today
Today I found this piece of code in an integration to RemoteX Application.
switch (ConfigurationManager.AppSettings["UsePriority"]) {
case "false":
switch (... ) {
case true:
log.Write
...
break;
case false:
log.Write
...
break;
};
break;
case "true":
switch (... ) {
case true:
log.Write
...
break;
case false:
log.Write
...
break;
};
break;
}
The dotted out code was application logic, so I omited it.