S
shapper
Hello,
I have a List(Of MyClass).
MyClass has two properties: Name and City.
I want to find, without using a loop, if there is a item where name =
NameParameter.
I know that I can use a Predicate but in .NET 2.0 Predicates do not
accepted Parameters.
Because of that I used a Predicate Wrapper.
With .NET 3.5 I know this has changed and now it is much easier to do
something like this.
However, I can't find any example of it.
Can someone, please, help me out?
Thanks,
Miguel
I have a List(Of MyClass).
MyClass has two properties: Name and City.
I want to find, without using a loop, if there is a item where name =
NameParameter.
I know that I can use a Predicate but in .NET 2.0 Predicates do not
accepted Parameters.
Because of that I used a Predicate Wrapper.
With .NET 3.5 I know this has changed and now it is much easier to do
something like this.
However, I can't find any example of it.
Can someone, please, help me out?
Thanks,
Miguel