Sunday 13 March 2011

Predicates in C#

myList = List<...>;

SomeObject desiredObject = myObjects.Find( o => o.Id == desiredId);