<p><span>Implement robust applications by applying efficient Design Patterns with .NET 5 and C#</span></p><p></p><p></p><p><span>Key Features</span><span><br></span></p><p><span>โ Detailed theoretical concepts covered, including the use of encapsulation, interfaces, and inheritance.<br></span></p><p
Implementing Design Patterns in C# 11 and . NET 7 - 2nd Edition : Learn how to design and develop robust and scalable applications using design patterns
โ Scribed by Malavasi Cardoso, Alexandre F.
- Publisher
- BPB Publications
- Year
- 2024
- Tongue
- English
- Leaves
- 322
- Edition
- 2
- Category
- Library
No coin nor oath required. For personal study only.
โฆ Synopsis
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
โฆ Table of Contents
Cover
Title Page
Copyright Page
Dedication Page
About the Author
About the Reviewer
Acknowledgement
Preface
Table of Contents
1.โC# Fundamentals
Introduction
Structure
Objectives
Tools and Environment Setup
Installing Visual Studio 2022
Installing Visual Studio Code
Introduction to Visual Studio 2022
Introduction to Visual Studio Code
History of .NET
.NET Core Versions
.NET 5, .NET 6 and .NET 7
Introduction to C# Language
Loops, Operators, and Iterators
While statement
Do-while statement
For loop
Foreach statement
Operators
Assignment operator
Error Handling
Namespaces
New features in C# 10 and 11
Global using directives
Generic Attributes
List patterns
Raw string Literals
New Debugger Features in Visual Studio
Temporary Breakpoints
Breakpoint hover glyph
Conclusion
Points to remember
Multiple Choice Questions
Answers
Questions
Key terms
2.โ.NET Fundamentals
Introduction
Structure
Objectives
Multi-platform concepts
.NET for cloud development
Azure Storage Accounts
Azure Functions
New features in .NET 6
Hot reload
.NET MAUI
HTTP/3
Custom platform checks
Conclusion
Points to remember
Multiple choice questions
Answers
Questions
Key terms
3.โBasic Concepts of Object-Oriented Programming in C#
Introduction
Structure
Objectives
Classes and access modifiers
Encapsulation
Inheritance
Reusability
Polymorphism
Partial class
Constructor
Static classes
Structs
Interfaces
Conclusion
Points to Remember
Multiple choice questions
Answer
Questions
Key terms
4.โSOLID Principles in C#
Introduction
Structure
Objectives
The Single Responsibility Principle
The open-closed principle
The Liskov substitution principle
The interface segregation principle
The dependency inversion principle
Conclusion
Points to remember
Multiple choice questions
Answers
Questions
Key terms
5.โIntroduction to Design Patterns
Introduction
Structure
Objectives
Importance of design patterns
History of Design Patterns
Design Pattern categories
Creational patterns
Behavioral patterns
Structural patterns
Patterns for Distributed Systems
Microservices design patterns
Conclusion
Points to remember
Multiple choice questions
Answers
Questions
Key terms
6.โSingleton Pattern in .NET Applications
Introduction
Structure
Objectives
Single pattern definition
Single attern definition
Multiple instances
Modifications for the single pattern
Thread-safe implementation
Dependency injection
Conclusion
Points to remember
Multiple choice questions
Answer
Questions
Key terms
7.โAbstract Factory Pattern with Blazor
Introduction
Structure
Objectives
Abstract Factory definition
Abstract Factory scenario
Abstract Factory implementation
Conclusion
Points to remember
Multiple choice questions
Answer
Questions
Key terms
8.โPrototype Pattern with ASP.NET Razor
Introduction
Structure
Objectives
Prototype pattern definition
Prototype pattern implementation
Conclusion
Points to remember
Multiple choice questions
Answer
Questions
Key terms
9.โFactory Method Pattern Using New Features on C# 11
Introduction
Structure
Objectives
Factory Method definition
Factory Method implementation
New features in C# 11
Required fields
UTF-8 string literals
Newlines in string interpolations
List patterns
Raw string literals
Conclusion
Points to remember
Multiple choice questions
Answer
Questions
Key terms
10.โAdapter Pattern with Entity Framework Core
Introduction
Structure
Objectives
Adapter pattern definition
Adapter pattern implementation
Conclusion
Points to remember
Multiple choice questions
Answers
Questions
Key terms
11.โComposite Pattern with ASP.NET MVC
Introduction
Structure
Objectives
Composite pattern definition
Composite pattern implementation
Conclusion
Points to remember
Multiple choice questions
Answer
Questions
Key terms
12.โProxy Pattern with GRPC
Introduction
Structure
Objectives
Proxy pattern definition
Proxy pattern types
Proxy pattern structure
Common use in real projects
Proxy pattern implementation
Scenario requirements
Practical example
GRPC with Blazor
Conclusion
Points to remember
Multiple choice questions
Answers
Questions
Key terms
13.โCommand Pattern Using MediatR
Introduction
Structure
Objectives
Command pattern definition
Proxy pattern implementation
Extra classes
MediatR and Command Pattern
Conclusion
Points to remember
Multiple choice questions
Answers
Questions
Key terms
14.โStrategy Pattern Using Azure C# and Azure Functions
Introduction
Structure
Objectives
Strategy pattern definition
Estrategy pattern structure
Strategy pattern implementation
Creating the city strategy class
Strategy pattern and Azure Functions
Conclusion
Points to remember
Multiple choice questions
Answers
Questions
Key terms
15.โObserver Pattern
Introduction
Structure
Objectives
Observer pattern definition
Observer pattern implementation
Creating the User class
Creating the Blog Post class
Client application
Conclusion
Points to remember
Multiple choice questions
Answers
Questions
Key terms
Index
๐ SIMILAR VOLUMES
With the increasing use of NoSQL in general and HBase in particular, knowing how to build practical applications depends on the application of design patterns. These patterns, distilled from extensive practical experience of multiple demanding projects, guarantee the correctness and scalability of t
<span><p><b>Improve the scalability and maintainability of your applications by implementing a variety of design patterns using Kotlin</b></p><h4>Key Features</h4><ul><li>Understand traditional and modern design patterns to improve the design of your application</li><li>Combine the benefits of objec
<span><p><b>Improve the scalability and maintainability of your applications by implementing a variety of design patterns using Kotlin</b></p><h4>Key Features</h4><ul><li>Understand traditional and modern design patterns to improve the design of your application</li><li>Combine the benefits of objec