struct CompareOptions

in global :: System . Globalization

Defines the string comparison options to use with .


public static CompareOptions IgnoreCase

Indicates that the string comparison must ignore case.

public static CompareOptions IgnoreKanaType

Indicates that the string comparison must ignore the Kana type. Kana type refers to Japanese hiragana and katakana characters, which represent phonetic sounds in the Japanese language. Hiragana is used for native Japanese expressions and words, while katakana is used for words borrowed from other languages, such as "computer" or "Internet". A phonetic sound can be expressed in both hiragana and katakana. If this value is selected, the hiragana character for one sound is considered equal to the katakana character for the same sound.

public static CompareOptions IgnoreNonSpace

Indicates that the string comparison must ignore nonspacing combining characters, such as diacritics. The Unicode Standard defines combining characters as characters that are combined with base characters to produce a new character. Nonspacing combining characters do not occupy a spacing position by themselves when rendered.

public static CompareOptions IgnoreSymbols

Indicates that the string comparison must ignore symbols, such as white-space characters, punctuation, currency symbols, the percent sign, mathematical symbols, the ampersand, and so on.

public static CompareOptions IgnoreWidth

Indicates that the string comparison must ignore the character width. For example, Japanese katakana characters can be written as full-width or half-width. If this value is selected, the katakana characters written as full-width are considered equal to the same characters written as half-width.

public static CompareOptions None

Indicates the default option settings for string comparisons.

public static CompareOptions Ordinal

Indicates that the string comparison must use successive Unicode UTF-16 encoded values of the string (code unit by code unit comparison), leading to a fast comparison but one that is culture-insensitive. A string starting with a code unit XXXX16 comes before a string starting with YYYY16, if XXXX16 is less than YYYY16. This value cannot be combined with other values and must be used alone.

public static CompareOptions OrdinalIgnoreCase

String comparison must ignore case, then perform an ordinal comparison. This technique is equivalent to converting the string to uppercase using the invariant culture and then performing an ordinal comparison on the result.

public static CompareOptions StringSort

Indicates that the string comparison must use the string sort algorithm. In a string sort, the hyphen and the apostrophe, as well as other nonalphanumeric symbols, come before alphanumeric characters.

public int value__

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public string ToString( string format, IFormatProvider provider )

😔 No documentation found.

public string ToString( IFormatProvider provider )

😔 No documentation found.

public string ToString( string format )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public int CompareTo( object target )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public TypeCode GetTypeCode( )

😔 No documentation found.

public bool HasFlag( Enum flag )

😔 No documentation found.