static IntPtr n_TranslateName_Ljava_lang_reflect_Field_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Google.Gson.FieldNamingPolicy __this = global::Java.Lang.Object.GetObject <global::Com.Google.Gson.FieldNamingPolicy> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Java.Lang.Reflect.Field p0 = global::Java.Lang.Object.GetObject <global::Java.Lang.Reflect.Field> (native_p0, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.NewString(__this.TranslateName(p0)); return(__ret); }
public unsafe global::Com.Google.Gson.GsonBuilder SetFieldNamingPolicy(global::Com.Google.Gson.FieldNamingPolicy namingConvention) { const string __id = "setFieldNamingPolicy.(Lcom/google/gson/FieldNamingPolicy;)Lcom/google/gson/GsonBuilder;"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((namingConvention == null) ? IntPtr.Zero : ((global::Java.Lang.Object)namingConvention).Handle); var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod(__id, this, __args); return(global::Java.Lang.Object.GetObject <global::Com.Google.Gson.GsonBuilder> (__rm.Handle, JniHandleOwnership.TransferLocalRef)); } finally { } }