top of page
Writer's pictureWix Engineering

How to turn any api to a fluent API with extension methods in C#

Updated: Jun 18, 2018



Let’s say you have a class A, which exposes an old fashion, not fluent api



In languages like Java, you would be stack with using this class in the old, and a very verbose way:




So the cumbersome code from before looks like:



That’s it.

bottom of page