System.Globalization.CompareInfo.Equals Method

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

Syntax

public override bool Equals (object value)

Parameters

value
The object to compare with the current System.Globalization.CompareInfo.

Returns

true if the specified object is equal to the current System.Globalization.CompareInfo; otherwise, false.

Remarks

Two System.Globalization.CompareInfo objects are equal if their CompareInfo.LCID and CompareInfo.Name properties are equal.

This method overrides object.Equals(object).

If a security decision depends on a string comparison or a case change, you should use the CultureInfo.InvariantCulture property to ensure that the behavior is consistent regardless of the culture settings of the operating system.

Requirements

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0