© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. FreemanPro ASP.NET Core 6https://doi.org/10.1007/978-1-4842-7957-1_5

5. Essential C# Features

Adam Freeman1  
(1)
London, UK
 
In this chapter, I describe C# features used in web application development that are not widely understood or that often cause confusion. This is not a book about C#, however, so I provide only a brief example for each feature so that you can follow the examples in the rest of the book and take advantage of these features in your projects. Table 5-1 summarizes this chapter.
Table 5-1

Chapter Summary

Problem

Solution

Listing

Reducing duplication in using statements

Use global or implicit using statements.

8–10

Managing null values

Use nullable ...

Get Pro ASP.NET Core 6: Develop Cloud-Ready Web Applications Using MVC, Blazor, and Razor Pages now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.