Enumeration

ComparisonOptions


Description

Specifies whether a comparison is case-sensitive or not. The default is CaseInsensitive.

Values

Enum

Description

Binary

Compares the bytes of the strings as they are, doing no encoding conversions.

CaseInsensitive

The case of characters is not considered. A and a are treated as identical.

CaseSensitive

The case of characters is considered. A and a are treated as different characters.

Lexicographic

The case of characters is not considered. The order the characters appear in their alphabet is what matters.

Notes

When speed is needed, Binary and Lexicographic are faster but are not encoding-savvy. If a Locale has been specified, it is ignored when Binary or Lexicographic are used.

When using Binary, be aware that it's possible for two strings to look the same on screen but be reported as different when using Binary because they are in different encodings and therefore contain different bytes.

Compatibility

All project types on all supported operating systems.