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...
One of the patterns that came up today in a code review was the Tester-Doer Pattern. One sees this pattern a lot especially when the “doer” side of the equation has a pretty decent performance penalty. Essentially, you test a condition to make sure you need to do the “doer“ operation and pay that penalty. Sometimes this can cause race conditions. Read more...
C# Automatic Properties is just one of a number of new C# 3.0 Features that you can experience during Visual Studio 2008 development. It feels different using the new C# features in an actual web application as opposed to just writing C# tutorials about them. Read more...
In Orcas Beta 2 we will see partial methods, which provides a hook for developers to “inject” code into partial classes without running the risk of that code being overwritten when the class is being generated in the future. Read more...