I have an ObservableCollection<myClass>
list. It contains a 10 objects of type MyClass
.
class MyClass
{
string name;
int age;
}
If I want to find all items in list where age = 10
, can I use the Contains
method?
If yes how can I do this without using iteration?