Abstract
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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
CRTP – the Curiously Recurring Template Pattern – is a popular C++ pattern which looks like this: class Foo<T> : T. In other words, you inherit from a generic parameter, something that’s impossible in C#.
- 2.
For an example, see Tomas Petricek’s snippet for an F#-based HTML-constructing DSL at http://fssnip.net/hf.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2020 Dmitri Nesteruk
About this chapter
Cite this chapter
Nesteruk, D. (2020). Builder. In: Design Patterns in .NET Core 3. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-6180-4_3
Download citation
DOI: https://doi.org/10.1007/978-1-4842-6180-4_3
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-6179-8
Online ISBN: 978-1-4842-6180-4
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)