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?
Console screenshot
And here's the offending code, with my debug output code either side:
Code:System.Console.WriteLine("\nWhat I'm adding: "); System.Console.WriteLine(bufferCentroid.ToString()); centroids.Add(bufferCentroid); System.Console.WriteLine("List contains: "); for (int k = 0; k < centroids.Count(); k++) { System.Console.WriteLine(centroids[k].ToString()); }