There are many ways to make frameworks and libraries more extensible via pluggable providers. Here is code that shows how to using reflection and custom attributes to find types in an assembly to evaluate expressions in a custom configuration section. This draws upon the concept of ExpressionEvaluators and ExpressionBuilders. Read more...
When doing Object-Relational Mapping, Nullable Types are a beautiful thing. They allow you to support nullable columns in databases that map to a value type in the CLR. Examples of this may be DateTime and Int32 types that are allowed to be null in the database. The challenges are verifying if a type is a nullable type and converting it to its underlying type. Here is some C# code that does just that...
I just got back from a long and much needed vacation. While spending most of the day trying to make a dent in my Inbox, I came across an email from Amazon mentioning a new book from Robert Martin, called Agile Principles, Patterns, and Practices in C#...