CultureInfo.Equals(Object) Method

Definition

Determines whether the specified object is the same culture as the current CultureInfo.

public override bool Equals (object value);
public override bool Equals (object? value);

Parameters

value
Object

The object to compare with the current CultureInfo.

Returns

true if value is the same culture as the current CultureInfo; otherwise, false.

Remarks

This method overrides Object.Equals.

Two CultureInfo objects are considered equal if their Name and CompareInfo properties are equal.

Applies to

See also