var folders = from o in Directory.GetDirectories(HttpContext.Current.Server.MapPath(parentNode.Key))
let dir = new DirectoryInfo(o)
where !Regex.Match(dir.Name, ExcludedFolders).Success
select new
{
DirectoryName = dir.Name
};
I need to be able to write this in something .net2.0 friendly. I am not familiar with linq to be able write this another way.
Any help is appreciated...
Translate from linq to something .net2.0
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted May 26, 2011, 8:57 AM EDT
DirectoryInfo dir = new DirectoryInfo(o);