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); }
public int CompareTo(object obj) { GeoZone b = (GeoZone) obj; return this.geoID.CompareTo(b.geoID); }