Joshua Bloch’s Builder Pattern in C#
Having spent a lot of time programming in Java over the last two years, I’ve made heavy use of Joshua Bloch’s Java Builder pattern (also Effective Java Item 2).
Recently, I’ve started a fairly large project in C# 3.0. As it happens, there came a point where I wanted to use a pattern similar to Bloch’s Builder. However, as anyone who tries to use this pattern in C# will quickly find out, Bloch’s Builder doesn’t translate perfectly to C#.
Comments(5)