Exemplo n.º 1
0
        public static void To装载计算列()
        {
            string path = AppDomain.CurrentDomain.BaseDirectory + "Computer.dll";
            Assembly _ass = Assembly.LoadFile(path);
            文件操作 file = new 文件操作();
            file.PATH = AppDomain.CurrentDomain.BaseDirectory + "\\数据配置文件\\计算列源.csv";
            file.加载文件();
            string value = string.Empty;
            string[] _value = null;

            while ((value = file.读数据()) != null)
            {
                _value = value.Split(',');

                Type type = _ass.GetType(_value[1]);
                IComputerItem obj = (IComputerItem)Activator.CreateInstance(type, null);
                obj.load(数据项哈希存储.数据项哈希集);
                数据项哈希存储.AddItem(_value[0], obj);
            }
        }
Exemplo n.º 2
0
        public static void To装载计算列()
        {
            string   path = AppDomain.CurrentDomain.BaseDirectory + "Computer.dll";
            Assembly _ass = Assembly.LoadFile(path);
            文件操作     file = new 文件操作();

            file.PATH = AppDomain.CurrentDomain.BaseDirectory + "\\数据配置文件\\计算列源.csv";
            file.加载文件();
            string value = string.Empty;

            string[] _value = null;

            while ((value = file.读数据()) != null)
            {
                _value = value.Split(',');

                Type          type = _ass.GetType(_value[1]);
                IComputerItem obj  = (IComputerItem)Activator.CreateInstance(type, null);
                obj.load(数据项哈希存储.数据项哈希集);
                数据项哈希存储.AddItem(_value[0], obj);
            }
        }