Your current code simply reassigns the local variable vto the new value - it does not refer to the original value in the list. This is equivalent to writing:
foreach(int v in PolygonBase)
{
v += MousePos;
}
To return to the original value, use ConvertAll:
PolygonBase.ConvertAll(v => v += MousePos);
Rex m source
share