How to build a sequence in the method calls of a fluent interface
- by silverfighter
Hi I would like to build a fluent interface for creating am object some sort of factory or builder.
I understand that I have to "return this" in order to make the methods chainable.
public class CarBuilder
{
public CarBuilder()
{
car = new Car();
}
private Car car;
public CarBuilder AddEngine(IEngineBuilder engine)
…