foobar.ToUpperInvariant() == "COMMAND"работает быстрее, чем
foobar.ToLowerInvariant() == "command"
When normalizing strings, it is highly recommended that you use ToUpperInvariant instead of ToLowerInvariant because Microsoft has optimized the code for performing uppercase comparisons.via stackoverflow.com