Example #1
0
        public bool Equals(PolylineChunk obj)
        {
            bool result = false;

            if (this.Id > 0 && obj.Id > 0)
            {
                result = this.Id == obj.Id;
            }
            else if (this.OverpassId > 0 && obj.OverpassId > 0)
            {
                result = this.OverpassId == obj.OverpassId;
            }
            else if (this.OrderedLocationEntities != null && obj.OrderedLocationEntities != null && this.OrderedLocationEntities.Count == obj.OrderedLocationEntities.Count)
            {
                int count = this.OrderedLocationEntities.Count;
                result = true;
                int index = 0;
                while (result && index < count)
                {
                    result = result && this.OrderedLocationEntities[index].Equals(obj.OrderedLocationEntities[index]);
                    index++;
                }
            }
            return(result);
        }
Example #2
0
 public OrderedPolylineChunk(int order, PolylineChunk polylineChunk)
 {
     Order         = order;
     PolylineChunk = polylineChunk;
 }