public static void SaveList(string type, ConfigurationList <T> list)
 {
     try
     {
         ConfigFilesManager <ConfigurationList <T> > .SaveToXml(type, list);
     }
     catch (System.Exception ex)
     {
         throw (ex);
     }
 }
        /// <summary>
        /// 返回配置的List
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        public static ConfigurationList <T> GetList(string type)
        {
            ConfigurationList <T> list;

            try
            {
                list = ConfigFilesManager <ConfigurationList <T> > .GetFromXml(type);
            }
            catch //(System.Exception ex)
            {
                list = null;
            }
            return(list);
        }
        public static void SaveToList(string type, T info)
        {
            ConfigurationList <T> list;

            try
            {
                list = ConfigFilesManager <ConfigurationList <T> > .GetFromXml(type);
            }
            catch
            {
                list = new ConfigurationList <T>();
            }
            list.Add(info.Key, info);
            try
            {
                ConfigFilesManager <ConfigurationList <T> > .SaveToXml(type, list);
            }
            catch (System.Exception ex)
            {
                throw (ex);
            }
        }