Contents tagged with C#
-
Orchard Gems: Exception fatality check
Catching exceptions with the type of the base Exception class is bad practice. "Never catch an exception you can't handle" says the proverb we all know from kindergarten. But what if we get our dependencies injected by requesting objects by their interface types?
-
Orchard Gems: The "dynamic page" pattern
The Orchard content model is a beautiful thing: the concept of extensible content types, the ability to fine-tune every aspect of content management gives us a very powerful toolbox when it comes to handling any type of content.