Range.Equals Range.Equals Range.Equals Range.Equals Method

定义

重载

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

返回一个值,该值指示当前实例是否与指定的对象相等。Returns a value that indicates whether the current instance is equal to a specified object.

Equals(Range) Equals(Range) Equals(Range) Equals(Range)

返回一个值,该值指示其他 Range 实例是否与指定的对象相等。Returns a value that indicates whether the current instance is equal to another Range object.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

返回一个值,该值指示当前实例是否与指定的对象相等。Returns a value that indicates whether the current instance is equal to a specified object.

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 Object Object Object

一个与此 Range 对象进行比较的对象。An object to compare with this Range object.

返回

如果 valueRange 类型,并且等于当前的实例,则为 true;否则为 falsetrue if value is of type Range and is equal to the current instance; otherwise, false.

Equals(Range) Equals(Range) Equals(Range) Equals(Range)

返回一个值,该值指示其他 Range 实例是否与指定的对象相等。Returns a value that indicates whether the current instance is equal to another Range object.

public:
 virtual bool Equals(Range other);
public bool Equals (Range other);
override this.Equals : Range -> bool
Public Function Equals (other As Range) As Boolean

参数

other
Range Range Range Range

一个与此 Range 对象进行比较的 Range 对象。A Range object to compare with this Range object.

返回

如果当前实例等于 other,则为 true;否则为 falsetrue if the current instance is equal to other; otherwise, false.

实现

适用于