Skip to Content
Design Patterns in .NET: Reusable Approaches in C# and F# for Object-Oriented Software Design
book

Design Patterns in .NET: Reusable Approaches in C# and F# for Object-Oriented Software Design

by Dmitri Nesteruk
May 2019
Intermediate to advanced content levelIntermediate to advanced
356 pages
5h 18m
English
Apress
Content preview from Design Patterns in .NET: Reusable Approaches in C# and F# for Object-Oriented Software Design

Part IICreational Patterns

Creational Patterns

In a managed language such as C#, the process of creating a new object is simple: Just new it up and forget about it. Well, there’s stackalloc, but we’re talking about objects that need to persist. Now, with the proliferation of dependency injection, another question is whether creating objects manually is still acceptable, or if we should instead defer the creation of all key aspects of our infrastructure to specialized constructs such as factories (more on them in just a moment) or inversion of control containers?

Whichever option you choose, creation of objects can still be a chore, especially if the construction process is complicated or needs to abide by special rules. That’s where creational patterns ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Design Patterns in .NET 6: Reusable Approaches in C# and F# for Object-Oriented Software Design

Design Patterns in .NET 6: Reusable Approaches in C# and F# for Object-Oriented Software Design

Dmitri Nesteruk
Hands-On Design Patterns with C# and .NET Core

Hands-On Design Patterns with C# and .NET Core

Gaurav Aroraa, Jeffrey Chilberto

Publisher Resources

ISBN: 9781484243664Purchase LinkPublisher Website