static bool n_ShouldSkipField_Lcom_google_gson_FieldAttributes_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Applozic.Mobicommons.Json.AnnotationExclusionStrategy __this = global::Java.Lang.Object.GetObject <global::Com.Applozic.Mobicommons.Json.AnnotationExclusionStrategy> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::GoogleGson.FieldAttributes p0 = global::Java.Lang.Object.GetObject <global::GoogleGson.FieldAttributes> (native_p0, JniHandleOwnership.DoNotTransfer); bool __ret = __this.ShouldSkipField(p0); return(__ret); }
public virtual unsafe bool ShouldSkipField(global::GoogleGson.FieldAttributes p0) { if (id_shouldSkipField_Lcom_google_gson_FieldAttributes_ == IntPtr.Zero) { id_shouldSkipField_Lcom_google_gson_FieldAttributes_ = JNIEnv.GetMethodID(class_ref, "shouldSkipField", "(Lcom/google/gson/FieldAttributes;)Z"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); bool __ret; if (((object)this).GetType() == ThresholdType) { __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_shouldSkipField_Lcom_google_gson_FieldAttributes_, __args); } else { __ret = JNIEnv.CallNonvirtualBooleanMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "shouldSkipField", "(Lcom/google/gson/FieldAttributes;)Z"), __args); } return(__ret); } finally { } }