Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

enum System.StringComparison

Assembly: System.Runtime

Specifies the culture, case, and sort rules to be used by certain overloads of the <see cref="M:System.String.Compare(System.String,System.String)" /> and <see cref="M:System.String.Equals(System.Object)" /> methods.

Values

CurrentCulture
Compare strings using culture-sensitive sort rules and the current culture.
CurrentCultureIgnoreCase
Compare strings using culture-sensitive sort rules, the current culture, and ignoring the case of the strings being compared.
InvariantCulture
Compare strings using culture-sensitive sort rules and the invariant culture.
InvariantCultureIgnoreCase
Compare strings using culture-sensitive sort rules, the invariant culture, and ignoring the case of the strings being compared.
Ordinal
Compare strings using ordinal (binary) sort rules.
OrdinalIgnoreCase
Compare strings using ordinal (binary) sort rules and ignoring the case of the strings being compared.