Range.Equals 方法

定义

重载

Equals(Object)

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

Equals(Range)

返回一个值,该值指示其他 Range 实例是否与指定的对象相等。Returns a value that indicates whether the current instance is equal to another Range 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

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

返回

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

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 对象。A Range object to compare with this Range object.

返回

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

实现

适用于