CompareInfo Methods

The CompareInfo type exposes the following members.

  NameDescription
Public method Compare(String, String) Compares two strings.
Public method Compare(String, String, CompareOptions) Compares two strings using the specified CompareOptions value.
Public method Compare(String, Int32, String, Int32) Compares the end section of a string with the end section of another string.
Public method Compare(String, Int32, String, Int32, CompareOptions) Compares the end section of a string with the end section of another string using the specified CompareOptions value.
Public method Compare(String, Int32, Int32, String, Int32, Int32) Compares a section of one string with a section of another string.
Public method Compare(String, Int32, Int32, String, Int32, Int32, CompareOptions) Compares a section of one string with a section of another string using the specified CompareOptions value.
Public method Equals Determines whether the specified object is equal to the current CompareInfo object. (Overrides Object.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Static member GetCompareInfo(Int32) Initializes a new CompareInfo object that is associated with the culture with the specified identifier.
Public method Static member GetCompareInfo(String) Initializes a new CompareInfo object that is associated with the culture with the specified name.
Public method Static member GetCompareInfo(Int32, Assembly) Initializes a new CompareInfo object that is associated with the specified culture and that uses string comparison methods in the specified Assembly.
Public method Static member GetCompareInfo(String, Assembly) Initializes a new CompareInfo object that is associated with the specified culture and that uses string comparison methods in the specified Assembly.
Public method GetHashCode Serves as a hash function for the current CompareInfo for hashing algorithms and data structures, such as a hash table. (Overrides Object.GetHashCode().)
Public method GetSortKey(String) Gets the sort key for the specified string.
Public method GetSortKey(String, CompareOptions) Gets a SortKey object for the specified string using the specified CompareOptions value.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IndexOf(String, Char) Searches for the specified character and returns the zero-based index of the first occurrence within the entire source string.
Public method IndexOf(String, String) Searches for the specified substring and returns the zero-based index of the first occurrence within the entire source string.
Public method IndexOf(String, Char, CompareOptions) Searches for the specified character and returns the zero-based index of the first occurrence within the entire source string using the specified CompareOptions value.
Public method IndexOf(String, Char, Int32) 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.
Public method IndexOf(String, String, CompareOptions) Searches for the specified substring and returns the zero-based index of the first occurrence within the entire source string using the specified CompareOptions value.
Public method IndexOf(String, String, Int32) 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.
Public method IndexOf(String, Char, Int32, CompareOptions) 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 CompareOptions value.
Public method IndexOf(String, Char, Int32, Int32) 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.
Public method IndexOf(String, String, Int32, CompareOptions) 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 CompareOptions value.
Public method IndexOf(String, String, Int32, Int32) 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.
Public method IndexOf(String, Char, Int32, Int32, CompareOptions) 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 CompareOptions value.
Public method IndexOf(String, String, Int32, Int32, CompareOptions) 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 CompareOptions value.
Public method IsPrefix(String, String) Determines whether the specified source string starts with the specified prefix.
Public method IsPrefix(String, String, CompareOptions) Determines whether the specified source string starts with the specified prefix using the specified CompareOptions value.
Public method Static member IsSortable(Char) Indicates whether a specified Unicode character is sortable.
Public method Static member IsSortable(String) Indicates whether a specified Unicode string is sortable.
Public method IsSuffix(String, String) Determines whether the specified source string ends with the specified suffix.
Public method IsSuffix(String, String, CompareOptions) Determines whether the specified source string ends with the specified suffix using the specified CompareOptions value.
Public method LastIndexOf(String, Char) Searches for the specified character and returns the zero-based index of the last occurrence within the entire source string.
Public method LastIndexOf(String, String) Searches for the specified substring and returns the zero-based index of the last occurrence within the entire source string.
Public method LastIndexOf(String, Char, CompareOptions) Searches for the specified character and returns the zero-based index of the last occurrence within the entire source string using the specified CompareOptions value.
Public method LastIndexOf(String, Char, Int32) 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.
Public method LastIndexOf(String, String, CompareOptions) Searches for the specified substring and returns the zero-based index of the last occurrence within the entire source string using the specified CompareOptions value.
Public method LastIndexOf(String, String, Int32) 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.
Public method LastIndexOf(String, Char, Int32, CompareOptions) 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 CompareOptions value.
Public method LastIndexOf(String, Char, Int32, Int32) 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.
Public method LastIndexOf(String, String, Int32, CompareOptions) 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 CompareOptions value.
Public method LastIndexOf(String, String, Int32, Int32) 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.
Public method LastIndexOf(String, Char, Int32, Int32, CompareOptions) 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 CompareOptions value.
Public method LastIndexOf(String, String, Int32, Int32, CompareOptions) 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 CompareOptions value.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current CompareInfo. (Overrides Object.ToString().)
Top

  NameDescription
Explicit interface implemetation Private method IDeserializationCallback.OnDeserialization Runs when the entire object graph has been deserialized.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft