© Dmitri Nesteruk 2020
D. NesterukDesign Patterns in .NET Core 3https://doi.org/10.1007/978-1-4842-6180-4_3

3. Builder

Dmitri Nesteruk1  
(1)
St. Petersburg, c.St-Petersburg, Russia
 

The Builder pattern is concerned with the creation of complicated objects, that is, objects that cannot be built up in a single-line constructor call. These types of objects may themselves be composed of other objects and might involve less-than-obvious logic, necessitating a separate component specifically dedicated to object construction.

I suppose it’s worth noting beforehand that, while I said the Builder is concerned with complicated objects , we’ll be taking a look at a rather trivial example. This is done purely for the purposes of space optimization, so that the ...

Get Design Patterns in .NET Core 3: Reusable Approaches in C# and F# for Object-Oriented Software Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.