See below:
SPWeb currentWeb = SPContext.Current.Web;
foreach (var web in currentWeb.Webs)
{
// web is object here - why?
}
SPWebCollection
implements IEnumerable<SPWeb>
(among other things), so why doesn't it work?
The project framework is .NET 3.5, and I have other .NET 3.5 stuff in the same code.
Or is this just me? Can anyone reproduce?