Archive for May, 2008

HowTo Filter System.IO.Directory.GetFiles with Linq

By Tony - Last updated: Friday, May 30, 2008

Here we are going to see an easy way to enumerate files in a directory, filter the files with Linq, then bind the results to a ASP.NET repeater control. We will show you the old .NET 1x way of doing this, then the new and improved Linq way of doing this. I had a method [...]

Querying Selected Items From ListItemCollection Using Lambda Expressions

By Tony - Last updated: Tuesday, May 27, 2008

You can use Linq and Lambda expressions along with the new extensions provided in the .NET framework 3.5 to filter those old school specialized collections like ListItemCollection. The key is to first convert the collection to a generic list using the Cast or ToList extension methods …. more on this in this article