I have a following class
public class People { public int id; public string nameHash; public string name; }
I need to create a
Is there a specific reason why it has to be a custom collection? Why not
List PeopleCollection = new List();
you can retrieve elements using id and nameHash and you can iterate over PeopleCollection
id
nameHash
PeopleCollection