brokul.dev
  • Blog
  • Archive
  • Feed
  • About

Tag: C#

Proxy pattern in C# - an easy way to extend production code

According to open-close principle, code should be open for extensions but closed for modifications. In other words, you should avoid modifying production code unless it's really necessary. A proxy design pattern is one of the solutions to this problem.

01 February 2021

Fluent builder inheritance - how to make it work in C#?

Fluent builder is a well-known design pattern that helps to build objects of a given type. It makes code more readable and maintainable thanks to method chaining. The problem occurs when you try to extend the functionality of the existing builder using inheritance.

23 January 2021
© brokul.dev 2022