T
Tony Johansson
Hello!
I have a generic list of many Products like
List<Product> list = new <Product>()
This product class contain several fields
but one field is called prodnr and its property ProdNr.
If I now want to find ouf if prodnr = 37 exist in the list
how do I best do that.
I could loop but it must be a better way.
Is it possibloe to use contains in some way.
//Tony
I have a generic list of many Products like
List<Product> list = new <Product>()
This product class contain several fields
but one field is called prodnr and its property ProdNr.
If I now want to find ouf if prodnr = 37 exist in the list
how do I best do that.
I could loop but it must be a better way.
Is it possibloe to use contains in some way.
//Tony