public static void Dump() { try { ConstNode[] nodes = new ConstNode[_constsDic.Count]; int i = 0; foreach (KeyValuePair <string, double> pair in _constsDic) { nodes[i] = new ConstNode(); nodes[i].Name = pair.Key; nodes[i].Value = pair.Value; i++; } ConstNodes temp = new ConstNodes(); temp.Nodes = nodes; SerializerHelper.XMLSerialize(FILENAME, temp); } catch (Exception ex) { throw ex; } }
public static void Dump() { try { ConstNode[] nodes = new ConstNode[_constsDic.Count]; int i = 0; foreach (KeyValuePair<string, double> pair in _constsDic) { nodes[i] = new ConstNode(); nodes[i].Name = pair.Key; nodes[i].Value = pair.Value; i++; } ConstNodes temp = new ConstNodes(); temp.Nodes = nodes; SerializerHelper.XMLSerialize(FILENAME,temp); } catch (Exception ex) { throw ex; } }