Tuesday May 3rd

Monday May 2nd

0 Kicks

Code for List.Find in . Net Framework 2.0

In one of my project I was in need of the List.FindAll method in . Net 2.0. I was unable to find any useful enough details about this, even though I did a good amount of searching in google. After a while, I ended up in the following code . My need was to find the exact object of my custom class in the collection given, matching my criteria. The List.FindAll accepts a predicate as parameter in which we can specify our own criteria. Predicate (System.predicate) is a new facility introduced in .Net 2.0 which enables us to mention our custom criteria.........

0 comments

Commenting on Stories is limited for now and will open up to those recommended by the community. Learn how
Loading DotNetKicks...
brought to you by the Kicks Network