.NET 2.0: List<T>.Exists and anonymous method
Seems like in order to use List<T>.Exists one should implement an anonymous method. Which rocks big time. Like this:
List<Product> productList; Product x; ... ... productList.Exists(delegate(Product prod) { return prod.ProductId == x.ProductId; } );
See some Anonymous methods examples
Monday, January 23, 2006 11:22 PM