top of page

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

Apr 6, 2015
1 min read

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.

 
 
 

Comments


The Latest Posts:

  • _SiteReliabilityEngineering
  • _SiteReliabilityEngineering

7 Production Habits We Learned at Wix. The Hard Way

  • _WixEngineering
  • _WixEngineering

Wix Engineering Roundup: AI Agents, Dashboardless UX, Zero-Downtime Migrations & Lessons from Production

  • _SoftwareEngineering
  • _SoftwareEngineering

Stop Reading Your New Codebase. Start Exploring It

bottom of page