I used struct
public struct stuff { public int ID; public int quan; }
in List<stuff> stuff = new List<stuff>();
List<stuff> stuff = new List<stuff>();
How can I check the list, is there already a material "where ID = 1"?
You can easily use LINQ
bool res = stuff.Any(c => c.ID == 1);
bool isContains = stuff.Any(x => x.ID == 1);
if(stuf.Select(x => x.id).Contains(1)) { //Do Stuff }