Rediger

Del via


CompareInfo.Equals(Object) Method

Definition

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

public:
 override bool Equals(System::Object ^ value);
public override bool Equals (object value);
public override bool Equals (object? value);
override this.Equals : obj -> bool
Public Overrides Function Equals (value As Object) As Boolean

Parameters

value
Object

The object to compare with the current CompareInfo.

Returns

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

Remarks

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.

Applies to

See also