StringComparison

StringComparison enum

Defines string comparison style.

enum class StringComparison

Values

NameValueDescription
CurrentCulture0Use current culture.
CurrentCultureIgnoreCase1Use current culture, but ignore case.
InvariantCulture2Use invariant culture.
InvariantCultureIgnoreCase3Use invariant culture, but ignore case.
Ordinal4Use ordinal sort rules.
OrdinalIgnoreCase5Use ordinal sort rules, but ignore case.

See Also