public static void Serialize(Storage s) { String json = s.ToJSON(); TextWriter sw = new StreamWriter(Helper.GetApplicationPath() + "/Storage.xml"); sw.Write(json); sw.Close(); }