title: Get a controller name from within the conroller class from within the Sub New() constructor?
body: <p>I am trying to make it generic - something like  ViewContext.RouteData.GetRequiredString("controller") but the problem is that most of the object are not instantiated at this point so I don't know how to get the controller name at this particular point. </p>
  
  <pre><code>Public Class TestMeController
      Inherits System.Web.Mvc.Controller
  
      Sub New()
  
        ConfigurationManager.AppSettings("ControllerNameWithSpaces") = Utilities.AddSpaceToControllerNameBeforeEachUpperCase("Here I want to pass a name of the controller")
  
  'I could Easily just hard code "TestMe" or "TestMe" And would get back "Test Me" and that would solve it but that is not the point. 
  
      End Sub
  
      Function Index() As ActionResult
        Return View()
      End Function
  
  End Class
  </code></pre>
  
  <p>So the question is: </p>
  
  <p>In the controller's Sub New() constructor - is there some way to get a hold of the current class (controllerName)) at this particular moment? </p>