/// <summary> /// Returns a clone of this object. /// </summary> /// <returns></returns> public object Clone() { RouteSegmentBranch clone = new RouteSegmentBranch(); clone.Latitude = this.Latitude; clone.Longitude = this.Longitude; if (this.Tags != null) { clone.Tags = new RouteTags[this.Tags.Length]; for (int idx = 0; idx < this.Tags.Length; idx++) { clone.Tags[idx] = this.Tags[idx].Clone() as RouteTags; } } clone.Name = this.Name; if (this.Names != null) { clone.Names = new RouteTags[this.Names.Length]; for (int idx = 0; idx < this.Names.Length; idx++) { clone.Names[idx] = this.Names[idx].Clone() as RouteTags; } } return(clone); }
/// <summary> /// Returns a clone of this object. /// </summary> /// <returns></returns> public object Clone() { RouteSegmentBranch clone = new RouteSegmentBranch(); clone.Latitude = this.Latitude; clone.Longitude = this.Longitude; if (this.Tags != null) { clone.Tags = new RouteTags[this.Tags.Length]; for (int idx = 0; idx < this.Tags.Length; idx++) { clone.Tags[idx] = this.Tags[idx].Clone() as RouteTags; } } clone.Name = this.Name; if (this.Names != null) { clone.Names = new RouteTags[this.Names.Length]; for (int idx = 0; idx < this.Names.Length; idx++) { clone.Names[idx] = this.Names[idx].Clone() as RouteTags; } } return clone; }