public static int writeSBML(SBMLDocument d, string filename) { int ret = libsbmlPINVOKE.writeSBML(SBMLDocument.getCPtr(d), filename); return ret; }