views:

19

answers:

1

How do use reflection to determine whether a Controller of a given type is within a Area in an ASP.net MVC project?

I am trying to write a new ControllerTypeResolver for an MvcSiteMap and need to work out if the type I am resolving exists within an Area in or not.

A: 

Why not? As long as you have criteria such as a namespace or a convention based controller name then this is possible.

jfar