This documentation is archived and is not being maintained.

StringComparer Members

Represents a string comparison operation that uses specific case and culture-based or ordinal comparison rules.

The StringComparer type exposes the following members.

  NameDescription
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework StringComparer Initializes a new instance of the StringComparer class.
Top

  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Compare Overloaded. Compares two objects or strings and returns an indication of their relative sort order.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Create Creates a StringComparer object that compares strings according to the rules of a specified culture.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Equals Overloaded. When overridden in a derived class, indicates whether two objects or strings are equal.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework 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 Supported by the .NET Compact Framework Supported by the XNA Framework GetHashCode Overloaded. When overridden in a derived class, gets the hash code for the current StringComparer object.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType Gets the type of the current instance. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public property Static member Supported by the .NET Compact Framework Supported by the XNA Framework CurrentCulture Gets a StringComparer object that performs a case-sensitive string comparison using the word comparison rules of the current culture.
Public property Static member Supported by the .NET Compact Framework Supported by the XNA Framework CurrentCultureIgnoreCase Gets a StringComparer object that performs case-insensitive string comparisons using the word comparison rules of the current culture.
Public property Static member Supported by the .NET Compact Framework Supported by the XNA Framework InvariantCulture Gets a StringComparer object that performs a case-sensitive string comparison using the word comparison rules of the invariant culture.
Public property Static member Supported by the .NET Compact Framework Supported by the XNA Framework InvariantCultureIgnoreCase Gets a StringComparer object that performs a case-insensitive string comparison using the word comparison rules of the invariant culture.
Public property Static member Supported by the .NET Compact Framework Supported by the XNA Framework Ordinal Gets a StringComparer object that performs a case-sensitive ordinal string comparison.
Public property Static member Supported by the .NET Compact Framework Supported by the XNA Framework OrdinalIgnoreCase Gets a StringComparer object that performs a case-insensitive ordinal string comparison.
Top
Show: