struct element

  • Thread starter Thread starter essamce
  • Start date Start date
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...
 

Similar threads

A
Replies
0
Views
784
ananda vardhana
A
R
Replies
0
Views
158
Robert in SF
R
R
Replies
0
Views
206
Roncas
R
J
Replies
0
Views
59
Jalil Sear [MCPD SharePoint]
J
D
Replies
0
Views
126
DenisAndreevich
D
Back
Top