Other than occasional use, working with reflection using C# isn't something I've had that much need to do. Recently though I was working on an additional feature for the Umbraco package The Dashboard . It provides a nice first screen for editors, showing their recent edits and other work carried out on the site content. The idea for the new feature was to create a developer version of this, that displayed various details about the code that had been implemented on the project. The use case being in the case of inheriting or coming back to a site, being able to have a quick overview of the techniques that have been used for route hijacking, surface controllers, application events and the like. In order to implement this it was going to be necessary to make quite heavy use of reflection and this post highlights a few of the methods used. Getting instances of types In the case of Umbraco route hijacking using custom controllers it's necessary to implement an MVC con
Senior Developer and head of DXP at Umbraco. Previously with Zone, building solutions primarily on .NET and using Umbraco, EPiServer and Sitecore CMS. This blog is used as a repository for various tips, tricks, issues and impressions drawn from the use of technology my work and interests. All words are my own.