public bool AppendDataMap(DataMap map) { if (map == null) { return(false); } if (!mDataMaps.ContainsKey(map.Name)) { mDataMaps.Add(map.Name, map); return(true); } return(false); }
public DataMap FromMapInfo(string mapinfo) { string name = BCUtil.GetMD5(mapinfo); if (mDataMaps.ContainsKey(name)) { return(mDataMaps[name]); } else { DataMap map = new DataMap(name, mapinfo); AppendDataMap(map); return(map); } }