I have made class in c#. after I had been a list consists from this class. the class has attribute groupId (The elements do not follow each other). I want to get the elements by the groupId. this is the class:
class GroupListItem
{
public GroupListItem(List<string> placeIdString)
{
GroupId = id++;
PlaceIdString = placeIdString;
}
private static int id=0;
public int GroupId { get; set; }
public List<String> PlaceIdString { get; set; }
}
this is the list declaration:
List<GroupListItem> groupListItems = new List<GroupListItem>();