Esempio n. 1
0
        public unsafe void Add(global::Java.Lang.Character character)
        {
            const string __id = "add.(Ljava/lang/Character;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((character == null) ? IntPtr.Zero : ((global::Java.Lang.Object)character).Handle);
                _members.InstanceMethods.InvokeAbstractVoidMethod(__id, this, __args);
            } finally {
            }
        }
        public unsafe void AddProperty(string property, global::Java.Lang.Character value)
        {
            const string __id            = "addProperty.(Ljava/lang/String;Ljava/lang/Character;)V";
            IntPtr       native_property = JNIEnv.NewString(property);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue(native_property);
                __args [1] = new JniArgumentValue((value == null) ? IntPtr.Zero : ((global::Java.Lang.Object)value).Handle);
                _members.InstanceMethods.InvokeAbstractVoidMethod(__id, this, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_property);
            }
        }
        public unsafe JsonPrimitive(global::Java.Lang.Character c)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Ljava/lang/Character;)V";

            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((c == null) ? IntPtr.Zero : ((global::Java.Lang.Object)c).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }