示例#1
0
                public EditorImpl(global::Com.TA.Utdid2.Core.Persistent.TransactionXMLFile.MySharedPreferencesImpl __self) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
                {
                    if (Handle != IntPtr.Zero)
                    {
                        return;
                    }

                    if (GetType() != typeof(EditorImpl))
                    {
                        SetHandle(
                            global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";)V", new JValue(__self)),
                            JniHandleOwnership.TransferLocalRef);
                        global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";)V", new JValue(__self));
                        return;
                    }

                    if (id_ctor_Lcom_ta_utdid2_core_persistent_TransactionXMLFile_MySharedPreferencesImpl_ == IntPtr.Zero)
                    {
                        id_ctor_Lcom_ta_utdid2_core_persistent_TransactionXMLFile_MySharedPreferencesImpl_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/ta/utdid2/core/persistent/TransactionXMLFile$MySharedPreferencesImpl;)V");
                    }
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_ta_utdid2_core_persistent_TransactionXMLFile_MySharedPreferencesImpl_, new JValue(__self)),
                        JniHandleOwnership.TransferLocalRef);
                    JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Lcom_ta_utdid2_core_persistent_TransactionXMLFile_MySharedPreferencesImpl_, new JValue(__self));
                }
                public unsafe EditorImpl(global::Com.TA.Utdid2.Core.Persistent.TransactionXMLFile.MySharedPreferencesImpl __self)
                    : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
                {
                    if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
                    {
                        return;
                    }

                    try {
                        JValue *__args = stackalloc JValue [1];
                        __args [0] = new JValue(__self);
                        if (((object)this).GetType() != typeof(EditorImpl))
                        {
                            SetHandle(
                                global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";)V", __args),
                                JniHandleOwnership.TransferLocalRef);
                            global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";)V", __args);
                            return;
                        }

                        if (id_ctor_Lcom_ta_utdid2_core_persistent_TransactionXMLFile_MySharedPreferencesImpl_ == IntPtr.Zero)
                        {
                            id_ctor_Lcom_ta_utdid2_core_persistent_TransactionXMLFile_MySharedPreferencesImpl_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/ta/utdid2/core/persistent/TransactionXMLFile$MySharedPreferencesImpl;)V");
                        }
                        SetHandle(
                            global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_ta_utdid2_core_persistent_TransactionXMLFile_MySharedPreferencesImpl_, __args),
                            JniHandleOwnership.TransferLocalRef);
                        JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_ta_utdid2_core_persistent_TransactionXMLFile_MySharedPreferencesImpl_, __args);
                    } finally {
                    }
                }