NSObject.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(NSObject) |
Determines whether the specified NSObject is equal to the current NSObject. |
| Equals(Object) |
Determines whether the specified object is equal to the current NSObject. |
Equals(NSObject)
public bool Equals(Foundation.NSObject obj);
public bool Equals(Foundation.NSObject? obj);
override this.Equals : Foundation.NSObject -> bool
Parameters
- obj
- NSObject
The object to compare with the current object.
Returns
true if the specified object is equal to the current object; otherwise, false.
Implements
Remarks
For direct bindings, this method uses the Objective-C isEqual: method. For non-direct bindings, this method uses reference equality.
Applies to
Equals(Object)
Determines whether the specified object is equal to the current NSObject.
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 the current object.
Returns
true if the specified object is equal to the current object; otherwise, false.
Remarks
For direct bindings, this method uses the Objective-C isEqual: method. For non-direct bindings, this method uses reference equality.