public JniArgumentValue(JniReferenceSafeHandle value) { this = new JniArgumentValue(); l = value == null ? IntPtr.Zero : value.DangerousGetHandle(); }
public JniObjectReference(JniReferenceSafeHandle handle, JniObjectReferenceType type = JniObjectReferenceType.Invalid) { SafeHandle = handle; Handle = IntPtr.Zero; Type = type; }
internal JniObjectReference(JniReferenceSafeHandle handle, JniObjectReferenceType type = JniObjectReferenceType.Invalid) { this.gcHandle = GCHandle.Alloc(handle, GCHandleType.Normal); referenceInfo = (uint)type; }