November 23rd, 2013, 02:42 PM
Helloo! I have some problems with hashset. I dont want use list because i dont want duplicated values.
If i use foreach then i get errors because list changed...
for (int i = 0; i < Globals.Globals.PlayersList.Count; i++)
var ent = Globals.Globals.PlayersList[i];
if (ent.name != null && !ent.PlayerConnected && !ent.PlayerDisconnected)
ent.PlayerConnected = true;
//Adding player in game, not showing my code :3
November 24th, 2013, 03:58 PM
Re: C# HashSet
More info? Anyway... list.Distinct()
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.