I think it can be done with linq but i cant find it on google, as i really done have a idea how to look for this issue.
I have a class list like this:
Public class Data
{
public string name;
public int someData;
}
public List<Data> allData = new List<Data>();
The list may contain like 32 items, where somedata is generated but the name is taken of the object that someData belongs to. But there might be multiple enterys by the same name, this is easyer to work with later on then 1 name with a int array.
What im looking for is a way to go tough the intire allData list but only once for each name, so 'bob' might be in there 8 times but i want to look trough it and only visit bob once.
It there a way to do this or do i need to rethink my list, and do use a int array?
And feedback is great!