System.Globalization.CompareInfo Members

The members of System.Globalization.CompareInfo are listed below.

See Also: Inherited members from System.Object

Public Properties

[read-only]
LCIDint.

Gets the properly formed culture identifier for the current System.Globalization.CompareInfo.

[read-only]
Namestring.

Gets the name of the culture used for sorting operations by this System.Globalization.CompareInfo object.

Public Methods

Compare(string, string) : int

Compares two strings.

Compare(string, string, CompareOptions) : int

Compares two strings using the specified System.Globalization.CompareOptions value.

Compare(string, int, string, int) : int

Compares the end section of a string with the end section of another string.

Compare(string, int, string, int, CompareOptions) : int

Compares the end section of a string with the end section of another string using the specified System.Globalization.CompareOptions value.

Compare(string, int, int, string, int, int) : int

Compares a section of one string with a section of another string.

Compare(string, int, int, string, int, int, CompareOptions) : int

Compares a section of one string with a section of another string using the specified System.Globalization.CompareOptions value.

override
Equals(object) : bool

Determines whether the specified object is equal to the current System.Globalization.CompareInfo object.

Finalize()
Documentation for this section has not yet been entered.
static
GetCompareInfo(int) : CompareInfo

Initializes a new System.Globalization.CompareInfo object that is associated with the culture with the specified identifier.

static
GetCompareInfo(string) : CompareInfo

Initializes a new System.Globalization.CompareInfo object that is associated with the culture with the specified name.

static
GetCompareInfo(int, System.Reflection.Assembly) : CompareInfo

Initializes a new System.Globalization.CompareInfo object that is associated with the specified culture and that uses string comparison methods in the specified System.Reflection.Assembly.

static
GetCompareInfo(string, System.Reflection.Assembly) : CompareInfo

Initializes a new System.Globalization.CompareInfo object that is associated with the specified culture and that uses string comparison methods in the specified System.Reflection.Assembly.

override
GetHashCode() : int

Serves as a hash function for the current System.Globalization.CompareInfo for hashing algorithms and data structures, such as a hash table.

GetSortKey(string) : SortKey

Gets the sort key for the specified string.

GetSortKey(string, CompareOptions) : SortKey

Gets a System.Globalization.SortKey object for the specified string using the specified System.Globalization.CompareOptions value.

IndexOf(string, char) : int

Searches for the specified character and returns the zero-based index of the first occurrence within the entire source string.

IndexOf(string, string) : int

Searches for the specified substring and returns the zero-based index of the first occurrence within the entire source string.

IndexOf(string, char, CompareOptions) : int

Searches for the specified character and returns the zero-based index of the first occurrence within the entire source string using the specified System.Globalization.CompareOptions value.

IndexOf(string, char, int) : int

Searches for the specified character and returns the zero-based index of the first occurrence within the section of the source string that extends from the specified index to the end of the string.

IndexOf(string, string, CompareOptions) : int

Searches for the specified substring and returns the zero-based index of the first occurrence within the entire source string using the specified System.Globalization.CompareOptions value.

IndexOf(string, string, int) : int

Searches for the specified substring and returns the zero-based index of the first occurrence within the section of the source string that extends from the specified index to the end of the string.

IndexOf(string, char, int, CompareOptions) : int

Searches for the specified character and returns the zero-based index of the first occurrence within the section of the source string that extends from the specified index to the end of the string using the specified System.Globalization.CompareOptions value.

IndexOf(string, char, int, int) : int

Searches for the specified character and returns the zero-based index of the first occurrence within the section of the source string that starts at the specified index and contains the specified number of elements.

IndexOf(string, string, int, CompareOptions) : int

Searches for the specified substring and returns the zero-based index of the first occurrence within the section of the source string that extends from the specified index to the end of the string using the specified System.Globalization.CompareOptions value.

IndexOf(string, string, int, int) : int

Searches for the specified substring and returns the zero-based index of the first occurrence within the section of the source string that starts at the specified index and contains the specified number of elements.

IndexOf(string, char, int, int, CompareOptions) : int

Searches for the specified character and returns the zero-based index of the first occurrence within the section of the source string that starts at the specified index and contains the specified number of elements using the specified System.Globalization.CompareOptions value.

IndexOf(string, string, int, int, CompareOptions) : int

Searches for the specified substring and returns the zero-based index of the first occurrence within the section of the source string that starts at the specified index and contains the specified number of elements using the specified System.Globalization.CompareOptions value.

IsPrefix(string, string) : bool

Determines whether the specified source string starts with the specified prefix.

IsPrefix(string, string, CompareOptions) : bool

Determines whether the specified source string starts with the specified prefix using the specified System.Globalization.CompareOptions value.

static
IsSortable(char) : bool

Indicates whether a specified Unicode character is sortable.

static
IsSortable(string) : bool

Indicates whether a specified Unicode string is sortable.

IsSuffix(string, string) : bool

Determines whether the specified source string ends with the specified suffix.

IsSuffix(string, string, CompareOptions) : bool

Determines whether the specified source string ends with the specified suffix using the specified System.Globalization.CompareOptions value.

LastIndexOf(string, char) : int

Searches for the specified character and returns the zero-based index of the last occurrence within the entire source string.

LastIndexOf(string, string) : int

Searches for the specified substring and returns the zero-based index of the last occurrence within the entire source string.

LastIndexOf(string, char, CompareOptions) : int

Searches for the specified character and returns the zero-based index of the last occurrence within the entire source string using the specified System.Globalization.CompareOptions value.

LastIndexOf(string, char, int) : int

Searches for the specified character and returns the zero-based index of the last occurrence within the section of the source string that extends from the beginning of the string to the specified index.

LastIndexOf(string, string, CompareOptions) : int

Searches for the specified substring and returns the zero-based index of the last occurrence within the entire source string using the specified System.Globalization.CompareOptions value.

LastIndexOf(string, string, int) : int

Searches for the specified substring and returns the zero-based index of the last occurrence within the section of the source string that extends from the beginning of the string to the specified index.

LastIndexOf(string, char, int, CompareOptions) : int

Searches for the specified character and returns the zero-based index of the last occurrence within the section of the source string that extends from the beginning of the string to the specified index using the specified System.Globalization.CompareOptions value.

LastIndexOf(string, char, int, int) : int

Searches for the specified character and returns the zero-based index of the last occurrence within the section of the source string that contains the specified number of elements and ends at the specified index.

LastIndexOf(string, string, int, CompareOptions) : int

Searches for the specified substring and returns the zero-based index of the last occurrence within the section of the source string that extends from the beginning of the string to the specified index using the specified System.Globalization.CompareOptions value.

LastIndexOf(string, string, int, int) : int

Searches for the specified substring and returns the zero-based index of the last occurrence within the section of the source string that contains the specified number of elements and ends at the specified index.

LastIndexOf(string, char, int, int, CompareOptions) : int

Searches for the specified character and returns the zero-based index of the last occurrence within the section of the source string that contains the specified number of elements and ends at the specified index using the specified System.Globalization.CompareOptions value.

LastIndexOf(string, string, int, int, CompareOptions) : int

Searches for the specified substring and returns the zero-based index of the last occurrence within the section of the source string that contains the specified number of elements and ends at the specified index using the specified System.Globalization.CompareOptions value.

override
ToString() : string

Returns a string that represents the current System.Globalization.CompareInfo object.

Explicitly Implemented Interface Members

System.Runtime.Serialization.IDeserializationCallback.OnDeserialization

Runs when the entire object graph has been deserialized.