Jeremy

Jeremy

  • NA
  • 7
  • 6.1k

translate from linq to something .net2.0

May 26 2011 12:45 PM
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...

Answers (1)