Implementing Design Patterns in C# and .NET 5
US$ 19.95
The publisher has enabled DRM protection, which means that you need to use the BookFusion iOS, Android or Web app to read this eBook. This eBook cannot be used outside of the BookFusion platform.
Description
Contents
Reviews
Language
English
ISBN
9789390684366
Cover Page
Title Page
Copyright Page
Dedication Page
About the Author
About the Reviewer
Acknowledgement
Preface
Errata
Table of Contents
1. C# Fundamentals
Structure
Objectives
Tools and environment setup
Installing Visual Studio 2019
Installing Visual Studio Code
Introduction to Visual Studio 2019
Introduction to Visual Studio Code
History of the .NET platform
The .NET Core versions
.NET 5
Introduction to C# language
Loops, operation, and iterations
while statement
do-while statement
for loop
foreach statement
Operators
if statement
switch case
Error handling
Exception
Namespaces
New features on C# 9.0
Conclusion
Points to remember
Multiple-choice questions
Answer
Questions
Key terms
2. Introduction to .NET 5
Structure
Objectives
2.1 Understanding multi-platform concepts
2.2 Overview of the principal project types in .NET 5
2.2.1 Console application
2.2.2 Windows Forms
2.2.3 Asp.Net Core Web application
Conclusion
Points to remember
Questions
3. Basic Concepts of Object-Oriented Programming
Structure
Objectives
Classes, constructors, and methods
Encapsulation
Inheritance
Reusability
Polymorphism
Partial class
Constructor
Static classes
Structs
Interfaces
Conclusion
Points to remember
Multiple-choice questions
Answer
Questions
4. Interfaces in C#
Structure
Objectives
Definition and implementation of interfaces
Multiple interfaces
Testability of interfaces
Dependency injection
Conclusion
Points to remember
Multiple-choice questions
Answer
Questions
5. Encapsulation and Polymorphism in C#
Structure
Objectives
Definition of encapsulation
Definition of polymorphism
Conclusion
Points to remember
Multiple-choice questions
Answer
Questions
6. SOLID Principles in C#
Structure
Objectives
6.1 The single-responsibility principle (SRP)
6.2 The open–closed principle (OCP)
6.3 The Liskov substitution principle (LSP)
6.4 The interface segregation principle (ISP)
6.5 The dependency inversion principle (DIP)
Conclusion
Points to remember
Questions
7. Abstract Factory
Structure
Objectives
Abstract factory definition
Abstract factory scenario
Abstract factory implementation
Conclusion
Points to remember
Multiple-choice questions
Answer
Questions
8. Singleton
Structure
Objectives
8.1 Singleton pattern definition
8.2 Singleton implementation
8.2.1 Multiple instances
8.2.2 Modifications for the singleton pattern
8.2.3 Thread-safe implementation
Conclusion
Points to remember
Multiple-choice questions
Answer
Questions
9. Prototype
Structure
Objectives
9.1 Prototype pattern definition
9.2 Prototype implementation
Conclusion
Points to remember
Multiple-choice questions
Answer
Questions
Key terms
10. Factory Method
Structure
Objectives
10.1 Factory method definition
10.2 Factory method implementation
Conclusion
Points to remember
Multiple-choice questions
Answer
Questions
Key terms
11. Adapter
Structure
Objectives
11.1 Adapter pattern definition
11.2 Adapter pattern implementation
Conclusion
Points to remember
Multiple-choice questions
Answer
Questions
Key terms
12. Composite
Structure
Objectives
12.1 Composite pattern definition
12.2 Composite pattern implementation
Conclusion
Points to remember
Multiple-choice questions
Answer
Questions
Key terms
13. Proxy
Structure
Objectives
13.1 Proxy pattern definition
13.1.1 Proxy pattern types
13.1.2 Proxy pattern structure
13.1.3 Common use in real projects
13.2 Proxy pattern implementation
13.2.1 Scenario requirements
13.2.2 Practical example
Conclusion
Points to remember
Multiple-choice questions
Answers
Questions
Key terms
14. Command
Structure
Objectives
14.1 Command pattern definition
14.2 Commandpattern implementation
14.2.1 Extra classes
14.2.2 Client application
Conclusion
Points to remember
Multiple-choice questions
Answers
Questions
Key terms
15. Strategy
Structure
Objectives
15.1 Strategypattern definition
15.2 Strategy pattern structure
15.3 Strategypattern implementation
15.4 Creating the city strategy class
Conclusion
Points to remember
Multiple-choice questions
Answers
Questions
Key terms
16. Observer
Structure
Objectives
16.1 Observerpattern definition
16.2 Observerpattern implementation
16.3 Creating the User class
16.4 Creating the Blog Post class
16.5 Client application
Conclusion
Points to remember
Multiple-choice questions
Answers
Questions
Key terms
17. Good Practices and Additional Design Patterns
Structure
Objectives
17.1 Good practices and recommendations
17.2 Builder, bridge, and decorator patterns
17.2.1 Builder pattern
17.2.2 Bridge pattern
17.2.3 Decorator pattern
17.3 Chain of responsibility and patterns
17.3.1 Chain of responsibility pattern
17.3.2 Façade pattern
Conclusion
Points to remember
Multiple-choice questions
Answers
Questions
Key terms
Index
Loading...