public int setFormula(string formula) { int ret = libsbmlPINVOKE.Rule_setFormula(swigCPtr, formula); if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve(); return ret; }