public unsafe CollectionTypeAdapterFactory(global::Com.Google.Gson.Internal.ConstructorConstructor constructorConstructor)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Lcom/google/gson/internal/ConstructorConstructor;)V";

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

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((constructorConstructor == null) ? IntPtr.Zero : ((global::Java.Lang.Object)constructorConstructor).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
Beispiel #2
0
        public unsafe ReflectiveTypeAdapterFactory(global::Com.Google.Gson.Internal.ConstructorConstructor constructorConstructor, global::Com.Google.Gson.IFieldNamingStrategy fieldNamingPolicy, global::Com.Google.Gson.Internal.Excluder excluder, global::Com.Google.Gson.Internal.Bind.JsonAdapterAnnotationTypeAdapterFactory jsonAdapterFactory)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Lcom/google/gson/internal/ConstructorConstructor;Lcom/google/gson/FieldNamingStrategy;Lcom/google/gson/internal/Excluder;Lcom/google/gson/internal/bind/JsonAdapterAnnotationTypeAdapterFactory;)V";

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

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