Language

JNIEnv.IsSameObject(IntPtr, IntPtr) Method

Definition

Compares the Java objects referenced by two JNI handles.

public static bool IsSameObject(IntPtr ref1, IntPtr ref2);
static member IsSameObject : nativeint * nativeint -> bool

Parameters

ref1
IntPtr

nativeint

A live JNI object reference from the current VM, usable on the calling thread, or Zero.

ref2
IntPtr

nativeint

A live JNI object reference from the current VM, usable on the calling thread, or Zero.

Returns

true if the references identify the same object or both identify null; 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.

Applies to