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.

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>