public IPoint GetLastPoint() { if (Points != null) { return(Points.Last()); } else if (Geometries != null) { return(Geometries.Last().GetLastPoint()); } else { return(null); } }