JniObjectReference.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(JniObjectReference) |
Determines whether two reference values contain the same handle. |
| Equals(Object) |
Determines whether an object is a reference value with the same handle. |
Equals(JniObjectReference)
Determines whether two reference values contain the same handle.
public bool Equals(Java.Interop.JniObjectReference other);
override this.Equals : Java.Interop.JniObjectReference -> bool
Parameters
- other
- JniObjectReference
The reference whose handle is to be compared.
Returns
true if the handle values match, regardless of reference type; otherwise, false.
Implements
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Equals(Object)
Determines whether an object is a reference value with the same handle.
public override bool Equals(object? obj);
override this.Equals : obj -> bool
Parameters
- obj
- Object
The object to compare with this reference value.
Returns
true if obj is a JniObjectReference with the same handle; otherwise, false.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.