public virtual unsafe void Add(global::Artifex.MuPdf.TextChar p0)
        {
            if (id_Add_Lcom_artifex_mupdfdemo_TextChar_ == IntPtr.Zero)
            {
                id_Add_Lcom_artifex_mupdfdemo_TextChar_ = JNIEnv.GetMethodID(class_ref, "Add", "(Lcom/artifex/mupdfdemo/TextChar;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_Add_Lcom_artifex_mupdfdemo_TextChar_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "Add", "(Lcom/artifex/mupdfdemo/TextChar;)V"), __args);
                }
            } finally {
            }
        }
 static void n_Add_Lcom_artifex_mupdfdemo_TextChar_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Artifex.MuPdf.TextWord __this = global::Java.Lang.Object.GetObject <global::Artifex.MuPdf.TextWord> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Artifex.MuPdf.TextChar p0     = global::Java.Lang.Object.GetObject <global::Artifex.MuPdf.TextChar> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.Add(p0);
 }