Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Contauner {
- private List<Point> _points = new List<Point>;
- public Contauner() {}
- public Contauner(List<Point> points) {
- this._points = points;
- }
- public void addPoint(Point point) {
- this._points.Add(point);
- }
- public void deletePointByIndex(int index){
- this._points.RemoveAt(index);
- }
- public void deletePoint(Point point){
- this._points.RemoveAt(point);
- }
- public Point this[int i]
- {
- get { return this._points.get(i); }
- set { this._points.get(i) = value; }
- }
- public List<Point> Points
- {
- get { return _points; }
- set { _points = value; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement