public int ExportToXML(out string argout, string dialect) { int ret = OsrPINVOKE.SpatialReference_ExportToXML(swigCPtr, out argout, dialect); if (OsrPINVOKE.SWIGPendingException.Pending) { throw OsrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }