List.Add is changing existing members?
I'm using the .Add() method of the .NET List to add new members. Trouble is, this seems to be changing all existing members to be the same as the added one.
This a problem anyone has come across before?
And here's the offending code, with my debug output code either side:
System.Console.WriteLine("\nWhat I'm adding: ");
System.Console.WriteLine("List contains: ");
for (int k = 0; k < centroids.Count(); k++)