E
essamce
Guest
hi
i want to know if there is something wrong with that struct , is the use of get/set correct?
any tips will help.
thanks in advance
public struct Simple2DPolyline
{
Point[] Vertices { get; set; }
Point StartPoint { get => Vertices.First(); }
Point EndPoint { get => Vertices.Last(); }
public Simple2DPolyline(Point[] vertices)
{
Vertices = vertices;
}
}
Continue reading...
i want to know if there is something wrong with that struct , is the use of get/set correct?
any tips will help.
thanks in advance
public struct Simple2DPolyline
{
Point[] Vertices { get; set; }
Point StartPoint { get => Vertices.First(); }
Point EndPoint { get => Vertices.Last(); }
public Simple2DPolyline(Point[] vertices)
{
Vertices = vertices;
}
}
Continue reading...