Slide 1
.NET 5 & C# 9
A look at what’s new
Slide 2
HELLO!
#DDD20
I am Stuart Lang
You can find me at
https://stu.dev
Slide 3
Agenda
› .NET 5
› What is it
› Support
› What’s new
C# 9
› Top-level programs
› Patterns
› Records
› Source Generators
Slide 4
Slide 5
Slide 6
Release Plan
https://blog.inedo.com/demystifying-net-lts
Slide 7
Consider Ecosystem Support
Slide 8
Porting to .NET 5
try-convert: https://github.com/dotnet/try-convert
Slide 9
.NET Conf 2020
.NET Conf 2020
https://www.youtube.com/playlist?list=PLdo4fOcmZ0oVWop1HEOml2OdqbDs6IlcI
Slide 10
.NET 5 Features
› C# 9
› Performance ⚡ Link - https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-5/
› Single file apps
› App trimming
› System.Text.Json new features
› F# 5
› And more
Slide 11
Slide 12
Slide 13
Slide 14
Patterns - Switch Expressions
Slide 15
Patterns - Switch Expressions
Slide 16
Patterns - Switch Expressions
Slide 17
Patterns - Switch Expressions
Slide 18
Slide 19
Slide 20
Slide 21
Slide 22
Slide 23
Source Generators
Program Code
Source Generator
Generated Output
Slide 24
Slide 25
Source Generators - Roslyn
Source code
Syntax Tree
Semantic Model
Emit IL
Slide 26
Slide 27
THANKS!
Any questions? You can find me at:
@stuartblang · stu.dev