Freigeben über


NSRange.Equals Method

Definition

Overloads

Name Description
Equals(NSRange)

Determines whether this NSRange and another NSRange have the same value.

Equals(Object)

Determines whether this NSRange and the specified object have the same value.

Equals(NSRange)

Determines whether this NSRange and another NSRange have the same value.

public bool Equals(Foundation.NSRange other);
override this.Equals : Foundation.NSRange -> bool

Parameters

other
NSRange

The NSRange to compare with this instance.

Returns

true if other has the same location and length as this instance; otherwise, false.

Implements

Applies to

Equals(Object)

Determines whether this NSRange and the specified object have the same value.

public override bool Equals(object obj);
public override bool Equals(object? obj);
override this.Equals : obj -> bool

Parameters

obj
Object

The object to compare with this instance.

Returns

true if obj is an NSRange and has the same location and length as this instance; otherwise, false.

Applies to