maartenba/MvcSiteMapProvider — pull request #92 by pmarflee (2012-10-18 19:21:22+00:00)
Title: Support controllers that are open generic types

I've noticed that MvcSiteMapProvider doesn't support controllers that are instances of open generic types. For instance, in a project I'm working on, I have a controller whose type signature is EmailController. I use a custom controller factory to create instances of this controller. The CLR name for this controller type is _EmailController`1_, After digging around in the source code, I noticed that MvcSiteMapProvider currently expects the CLR type name of a controller type to end in 'Controller', which won't be the case if the controller type is an open generic. I've therefore made some minor, non-breaking changes that should allow the use of controllers whose name follows the ASP.NET MVC controller naming convention and are instances of open generic types.