I want to know how to see if my list contains a string name...having this
private class item { public string itemname { get; set; }
public int val { get; set; }
I tried,
var ilst = new List<itemname>();
ilst.Add( new itemname { ilst = "AA" , val = 1 } );
and then,
ilst.Exist(name => name.itemname == "AA" );
To do this exist a more efficient way or this is ok?