public JniGlobalHandle NewGlobalRef(JniHandle lobj) { if (JniLocalHandle.IsNull(lobj)) { throw new ArgumentNullException("lobj"); } JniGlobalHandleNs res = newGlobalRef(envPtr, lobj); return(new JniGlobalHandle(res.handle, GetJavaVM())); }
public JniGlobalHandle(JniGlobalHandleNs handleValue, JavaVM javaVM) : base(IntPtr.Zero, true) { this.javaVM = javaVM; SetHandle(handleValue.handle); }