Alex Rivera | Logout

Creating API that is fluent

Asked 2009-10-26T00:56:39.430
55

How does one go about create an API that is fluent in nature?

Is this using extension methods primarily?

Edit
Report

1 Answer

1

With a fluent API:

myCar.SetColor(Color.Blue).SetName("Aston Martin");

Check out this video http://www.viddler.com/explore/dcazzulino/videos/8/

answered 2010-02-01T19:01:10.023

Your Answer