Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Adopting .NET 5

You're reading from   Adopting .NET 5 Understand modern architectures, migration best practices, and the new features in .NET 5

Arrow left icon
Product type Paperback
Published in Dec 2020
Publisher Packt
ISBN-13 9781800560567
Length 296 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Hammad Arif Hammad Arif
Author Profile Icon Hammad Arif
Hammad Arif
Habib Qureshi Habib Qureshi
Author Profile Icon Habib Qureshi
Habib Qureshi
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Section 1: Features and Capabilities
2. Chapter 1: Introducing .NET 5 Features and Capabilities FREE CHAPTER 3. Chapter 2: What's New in C# 9? 4. Section 2: Design and Architecture
5. Chapter 3: Design and Architectural Patterns 6. Chapter 4: Containerized Microservices Architecture 7. Section 3: Migration
8. Chapter 5: Upgrading Existing .NET Apps to .NET 5 9. Chapter 6: Upgrading On-Premises Applications to the Cloud with .NET 5 10. Section 4: Bonus
11. Chapter 7: Integrating Machine Learning in .NET 5 12. Other Books You May Enjoy

Chapter 2: What's New in C# 9?

Since its first release in 2002, C# has come a long way. While C#'s first iteration had a striking resemblance to C and Java, its subsequent evolutions outpaced other languages in introducing industry-leading features (LINQ, async-await, and lambdas, to name a few) and still continue to do so.

In this chapter, we'll learn about the new language enhancements offered by C# 9 using the .NET 5 runtime. Some of these enhancements are a continuation of features introduced in C# 7 and C# 8. We'll discuss the design philosophy of these features, and then with coding examples, we'll learn when, why, and how to best leverage the new features.

The main goal of this chapter is to provide code-based examples, keeping the theory minimal, and show the distinct advantages that these new language constructs have over existing ones. Some major goals of C# enhancements (simplifying the code intent and empowering immutability) are explained...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image