예제 #1
0
        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;
            }
        }
예제 #2
0
        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;
            }
        }