I am declaring a list like below and then I am adding 12 items to it:
List lstPolygonWkt = new List();
foreach (var i in items) lstPolygonWkt.Add(i.PolygonWkt);
One should think that the list now contains 12 elements, right? But to my surprise it turns out that the list suddenly contains 16 items and then the last 4 items are null. I don't understand why my list which should be 12 items is suddenly 16 items. Any idea why? And how to make the list only 12 items as it should be?
I will paste a couple of screen shots: