public static void SerializableTable(string[] valuesList, int skey, Dictionary <int, List <object> > _hash)
      {
          if ((int)_ID.MAX_RECORD != valuesList.Length)
          {
              throw TableException.ErrorReader("Load {0} error as CodeSize:{1} not Equal DataSize:{2}", GetInstanceFile(), _ID.MAX_RECORD, valuesList.Length);
          }
          Tab_CityBuildingSlot _values = new Tab_CityBuildingSlot();

          _values.m_BuildingType = Convert.ToInt32(valuesList[(int)_ID.ID_BUILDINGTYPE] as string);
          _values.m_Effect [0]   = Convert.ToInt32(valuesList[(int)_ID.ID_EFFECT_1] as string);
          _values.m_Effect [1]   = Convert.ToInt32(valuesList[(int)_ID.ID_EFFECT_2] as string);
          _values.m_Effect [2]   = Convert.ToInt32(valuesList[(int)_ID.ID_EFFECT_3] as string);
          _values.m_Effect [3]   = Convert.ToInt32(valuesList[(int)_ID.ID_EFFECT_4] as string);
          _values.m_Effect [4]   = Convert.ToInt32(valuesList[(int)_ID.ID_EFFECT_5] as string);
          _values.m_Id           = Convert.ToInt32(valuesList[(int)_ID.ID_ID] as string);
          _values.m_UnlockLevel  = Convert.ToInt32(valuesList[(int)_ID.ID_UNLOCKLEVEL] as string);

          if (_hash.ContainsKey(skey))
          {
              List <object> tList = _hash[skey];
              tList.Add(_values);
          }
          else
          {
              List <object> tList = new List <object>();
              tList.Add(_values);
              _hash.Add(skey, (List <object>)tList);
          }
      }
        public static bool InitTable_CityBuildingSlot()
        {
            g_CityBuildingSlot.Clear();
            Dictionary <int, List <object> > tmps = new Dictionary <int, List <object> >();

            if (!Tab_CityBuildingSlot.LoadTable(tmps))
            {
                return(false);
            }
            foreach (KeyValuePair <int, List <object> > kv in tmps)
            {
                List <Tab_CityBuildingSlot> values = new List <Tab_CityBuildingSlot>();
                foreach (object subit in kv.Value)
                {
                    values.Add((Tab_CityBuildingSlot)subit);
                }
                g_CityBuildingSlot.Add(kv.Key, values);
            }
            return(true);
        }