public Document GetDocument() { Document ret = new Document(XapianPINVOKE.TermGenerator_GetDocument(swigCPtr), false); if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); return ret; }