I have:
for(int b = 0; b <num; b++)
{
string naz_pkt = "punkt_" + b.ToString();
Point naz_pkt = new Point(i,j);
....
}
And what, I need to do:
I want make Points, where name of the Point will be change with the loop. And i will have for ex.
Point punkt_1 = new Point(0,1);
Point punkt_2 = new Point(0,2);
Point punkt_3 = new Point(0,3);
etc.
After that I want drow this points by polygon.
Thanks for help.
If you don’t really care about the name of the points, you can use a list to hold them:
If you care about the name you can use something like KeyValuePair: