Retrieval of items from custom collection

后端 未结 4 973
失恋的感觉
失恋的感觉 2020-12-20 22:45

I have a following class

public class People
{
    public int id;
    public string nameHash;
    public string name;
}

I need to create a

4条回答
  •  北海茫月
    2020-12-20 23:04

    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

提交回复
热议问题