Ejemplo n.º 1
0
 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);
    }
Ejemplo n.º 3
0
		private void AddIfInside(PointDescription pt, IList<PointDescription> list)
		{
			if (IsPointInsideOfTable(pt.Point))
				list.Add(pt);
		}
Ejemplo n.º 4
0
 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;
 }