private void AddIfInside(PointDescription pt, IList <PointDescription> list) { if (IsPointInsideOfTable(pt.Point)) { list.Add(pt); } }
public object Clone() { Point newPoint = (Point)this.MemberwiseClone(); PointDescription currentDesc = new PointDescription(); currentDesc.petName = this.desc.petName; newPoint.desc = currentDesc; return(newPoint); }
private void AddIfInside(PointDescription pt, IList<PointDescription> list) { if (IsPointInsideOfTable(pt.Point)) list.Add(pt); }
public object Clone() { // now we need to make a deep copy, start with shallow Point2 newPoint = (Point2) this.MemberwiseClone(); // now fill in the gaps. PointDescription currentDesc = new PointDescription(); currentDesc.PetName = this.desc.PetName; newPoint.desc = currentDesc; return newPoint; }