NSRange.Equals Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
public bool Equals(Foundation.NSRange other);
override this.Equals : Foundation.NSRange -> bool
Parameters
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.