How to enumerate Areas in ASP.NET MVC 2 RC
My controller has to enumerate all the areas in the application. Is it possible? 开发者_如何学PythonAnd how?
From this issue, something like that =>
RouteTable.Routes.OfType<Route>()
.Where(r => r.DataTokens != null)
.Select(r => (string) r.DataTokens["area"]);
精彩评论