Tuesday, July 3, 2012

Ordinal String Comparison

When comparing strings, it would be best to use "Ordinal" or "OrdinalIgnoreCase" for culture-agnostic comparisons. And, as what stated in the MSDN, your code often gains speed, increases correctness, and becomes more reliable.


If you find this post helpful, would you buy me a coffee?

No comments:

Post a Comment