CultureInfo.Equals(Object) 方法

定义

确定指定的对象是否与当前 CultureInfo 具有相同的区域性。Determines whether the specified object is the same culture as the current CultureInfo.

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

参数

value
Object

将与当前 CultureInfo 进行比较的对象。The object to compare with the current CultureInfo.

返回

如果 true 与当前 value 具有相同的区域性,则为 CultureInfo;否则为 falsetrue if value is the same culture as the current CultureInfo; otherwise, false.

注解

此方法重写 Object.EqualsThis method overrides Object.Equals.

如果两个 CultureInfo 对象的 NameCompareInfo 属性相等,则视为相等。Two CultureInfo objects are considered equal if their Name and CompareInfo properties are equal.

适用于

另请参阅