コード例 #1
0
 public GeoZone(GeoZone pGeoZone, bool copyDataList = true)
 {
     if(pGeoZone.father != null)
         this.father = new GeoZone(pGeoZone.father);
     if(pGeoZone.sonList != null)
         this.sonList = new ConcurrentBag<GeoZone>(pGeoZone.sonList);
     
     this.geoID = pGeoZone.geoID;
     this.code = pGeoZone.code;
     this.name = pGeoZone.name;
     this.population = pGeoZone.population;
     
     if(copyDataList)
         this.dataList = new ConcurrentBag<CoVidData>(pGeoZone.dataList);
 }
コード例 #2
0
 public int CompareTo(object obj)
 {
     GeoZone b = (GeoZone) obj;
     return this.geoID.CompareTo(b.geoID);
 }