Implementing Design Patterns in C# 11 and .NET 7
Author | : Alexandre F. Malavasi Cardoso |
Publisher | : BPB Publications |
Total Pages | : 390 |
Release | : 2023-10-13 |
ISBN-10 | : 9789355517333 |
ISBN-13 | : 9355517335 |
Rating | : 4/5 (335 Downloads) |
Download or read book Implementing Design Patterns in C# 11 and .NET 7 written by Alexandre F. Malavasi Cardoso and published by BPB Publications. This book was released on 2023-10-13 with total page 390 pages. Available in PDF, EPUB and Kindle. Book excerpt: Unlock the potential of design patterns to write better code in C# 11 and .NET 7 KEY FEATURES ● Learn the essentials of C# and object-oriented programming. ● Gain insights into best practices for quality coding. ● Learn how to use design patterns to write code that is reusable, flexible, and maintainable. DESCRIPTION This book is a complete guide to design patterns and object-oriented programming (OOP) in C# and .NET. It covers everything from the basics of C# and Visual Studio to advanced topics like software architecture and best coding practices, including the SOLID principles. The book starts with the basics of C#, .NET, the SOLID principles, and the OOP paradigm. Then, it introduces widely-used design patterns with hands-on examples in C# and .NET. These examples include real-world scenarios and step-by-step instructions. In addition, the book provides an overview of advanced features in the .NET ecosystem, insights into current market solutions for software strategy, and guidance on when to use a design pattern-centric approach. The book concludes with valuable recommendations and best practices for .NET applications, especially when using design patterns. WHAT YOU WILL LEARN ● Learn how to use the Singleton pattern to ensure that only one instance of a class exists in your application. ● Learn how to use the Prototype pattern to create new objects by copying existing objects. ● Learn how to use the Factory Method pattern to create objects without specifying their concrete classes. ● Learn how to use the Adapter pattern to make incompatible interfaces work together. ● Learn how to use the Proxy pattern to control access to objects. ● Learn how to use the Strategy pattern to encapsulate algorithms. WHO THIS BOOK IS FOR This book is invaluable for software developers switching to .NET, experienced .NET developers learning about advanced design patterns, object-oriented programming paradigms, and SOLID principles, and .NET Core enthusiasts looking for information on core functionalities and recent platform advancements. TABLE OF CONTENTS 1. C# Fundamentals 2. .NET Fundamentals 3. Basic Concepts of Object-Oriented Programming in C# 4. SOLID Principles in C# 5. Introduction to Design Patterns 6. Singleton Pattern in .NET Applications 7. Abstract Factory Pattern with Blazor 8. Prototype Pattern with ASP.NET Razor 9. Factory Method Pattern Using New Features on C# 11 10. Adapter Pattern with Entity Framework Core 11. Composite Pattern with ASP.NET MVC 12. Proxy Pattern with GRPC 13. Command Pattern Using MediatR 14. Strategy Pattern Using Azure C# and Azure Functions 15. Observer Pattern