Tim Van Wassenhove

Passionate geek, interested in Technology. Proud father of two

08 Oct 2009

Fluent Builders: The case against implicit conversion (2)

Here is another example that demonstrates how implicit conversion in a Fluent Builder can lead to surprises (Jan Van Ryswyck noticed this too). Originally the code in my previous example was the following:

var order = new OrderBuilder();

Wich would make the c# compiler conclude that order is an OrderBuilder instead of an Order.