public void AddPoly(Poly poly) { if (Polys == null) { Polys = poly; return; } Poly p = Polys; while (!p.IsLast) { p = p.Next; } p.SetNext(poly); }
public void SetNext(Poly poly) { if (IsLast) { Next = poly; return; } Poly p = poly; while (!p.IsLast) { p = p.Next; } p.SetNext(Next); Next = poly; }