-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Software Architecture with C# 12 and .NET 8
By :

.NET 8 implements some good features that help us to write better code. One of the most useful things for having safer code is dependency injection (DI), which will be discussed in Chapter 5, Design Patterns and .NET 8 Implementation. There are some good reasons for considering this. The first one is that you will not need to worry about disposing of the injected objects since you are not going to be the creator of them.Besides, DI enables you to inject ILogger
, a useful tool for debugging exceptions that will need to be managed by try-catch
statements in your code. Furthermore, programming in C# with .NET 8 must follow the common good practices of any programming language. The following list shows some of these: