CompareInfo::Equals Method (Object^)

 

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

Namespace:   System.Globalization
Assembly:  mscorlib (in mscorlib.dll)

public:
virtual bool Equals(
	Object^ value
) override

Parameters

value
Type: System::Object^

The object to compare with the current CompareInfo.

Return Value

Type: System::Boolean

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

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

This method overrides Object::Equals.

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

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: