Exemple #1
0
        public static void Dump()
        {
            try
            {
                UserDefinFunItem[] nodes = new UserDefinFunItem[UserFuncDic.Count];
                int i = 0;

                foreach (KeyValuePair <string, string> pair in UserFuncDic)
                {
                    nodes[i]                 = new UserDefinFunItem();
                    nodes[i].UfuncName       = pair.Key;
                    nodes[i].UfuncExpression = pair.Value;
                    i++;
                }

                UFuncs temp = new UFuncs();
                temp.Items = nodes;

                SerializerHelper.XMLSerialize(FILENAME, temp);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        public static void Dump()
        {
            try
            {
                UserDefinFunItem[] nodes = new UserDefinFunItem[UserFuncDic.Count];
                int i = 0;

                foreach (KeyValuePair<string, string> pair in UserFuncDic)
                {
                    nodes[i] = new UserDefinFunItem();
                    nodes[i].UfuncName = pair.Key;
                    nodes[i].UfuncExpression = pair.Value;
                    i++;
                }

                UFuncs temp = new UFuncs();
                temp.Items = nodes;

                SerializerHelper.XMLSerialize(FILENAME, temp);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }