public int setSpecies(string sid) { int ret = libsbmlPINVOKE.SimpleSpeciesReference_setSpecies(swigCPtr, sid); if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve(); return ret; }