StringComparer Methods
Collapse the table of content
Expand the table of content

StringComparer Methods

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The StringComparer type exposes the following members.

  NameDescription
Public method Compare(Object, Object) When overridden in a derived class, compares two objects and returns an indication of their relative sort order.
Public method Compare(String, String) When overridden in a derived class, compares two strings and returns an indication of their relative sort order.
Public method Static member Create Creates a StringComparer object that compares strings according to the rules of a specified culture.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method Equals(Object, Object) When overridden in a derived class, indicates whether two objects are equal.
Public method Equals(String, String) When overridden in a derived class, indicates whether two strings are equal.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode() Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetHashCode(Object) When overridden in a derived class, gets the hash code for the specified object.
Public method GetHashCode(String) When overridden in a derived class, gets the hash code for the specified string.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

Show:
© 2017 Microsoft