LINQ to SELECT from lists collection

A neat bit of code to write out all lists at the Root Web level that are hidden!

using(SPSite site = new SPSite(http://phillau)

{

SPWeb web = site.RootWeb

var lists = from list in web.Lists.OfType<SPList>()

where list.Hidden == true

select list;

foreach(var list in lists)

{

       Console.WriteLine(list.Title);

}

}

Done!