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:

  • _EngineeringProductivity
  • _EngineeringProductivity

Code Migrations Don't Have to Hurt. This is how switched from cross team manual work to an automatic infrastructure

  • _AIEngineering
  • _AIEngineering

The End of Determinism: What’s Left for Engineers When AI Writes the Code

  • _AIEngineering
  • _AIEngineering

How to Build AI Agents That Fix Themselves - Without Bigger Prompts, More Context, or Another LLM

bottom of page