Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Salut .NET 5, quoi de neuf ?
Search
Cyril
December 10, 2020
Programming
67
0
Share
Salut .NET 5, quoi de neuf ?
Résumé des nouveautés dernières .NET 5, C# 9 et Visual Studio.
Cyril
December 10, 2020
More Decks by Cyril
See All by Cyril
Annonces de la .NET Conf 2019
cyrilcathala
0
70
Build 2018 - Xamarin
cyrilcathala
1
48
Microsoft Build 2017 Mobile Wrap-Up
cyrilcathala
0
130
Mobile Deep Linking
cyrilcathala
0
120
Programmation Réactive - Reactive Extensions
cyrilcathala
0
73
Xamarin.iOS - AutoLayout + iOS 9
cyrilcathala
0
450
Other Decks in Programming
See All in Programming
SREに優しいTerraform構成 modulesとstateの組み方
hiyanger
2
150
Terraform言語の静的解析 / static analysis of Terraform language
wata727
1
110
SkillがSkillを生む:QA観点出しを自動化した
sontixyou
6
3.5k
mruby on C#: From VM Implementation to Game Scripting (RubyKaigi 2026)
hadashia
2
680
ソフトウェア設計の結合バランス #phperkaigi
kajitack
0
150
The Less-Told Story of Socket Timeouts
coe401_
3
640
[RubyKaigi 2026] Require Hooks
palkan
1
230
Oxlintとeslint-plugin-react-hooks 明日から始められそう?
t6adev
0
280
Swift Concurrency Type System
inamiy
1
550
2026_04_15_量子計算をパズルとして解く
hideakitakechi
0
120
Making the RBS Parser Faster
soutaro
0
530
〜バイブコーディングを超えて〜 チームで実験し続けたAI駆動開発
tigertora7571
0
170
Featured
See All Featured
Evolving SEO for Evolving Search Engines
ryanjones
0
180
WENDY [Excerpt]
tessaabrams
10
37k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Crafting Experiences
bethany
1
120
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
64
54k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
300
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
270
Fireside Chat
paigeccino
42
3.9k
Designing for Performance
lara
611
70k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.2k
Navigating Weather and Climate Data
rabernat
0
170
Transcript
10/12/2020 Salut .NET 5, quoi de neuf ?
Cyril CATHALA A propos ➔ .NET, Azure, Mobile ➔ Coach
Technique – SOAT ➔ MVP Developer Technologies @CyrilCathala in/cyrilcathala
[email protected]
3 .NET 5
Roadmap .NET Core 4
.NET 5 – Unification 5
.NET 5 6 ➔ Target framework > net5.0 : Crossplatform
> net5.0-windows : Forms, WPF, WinRT… > net6.0-ios, net6.0-android : Xamarin ➔ Performances+++ > gRPC, Arm64, JSON ➔ Support de Windows Arm64 ➔ System.Text.Json amélioré ➔ Extensions HttpClient pour JSON > GetFromJsonAsync<T>() ➔ Application single file
.NET 5 - Windows 7 ➔ Designer Windows Forms +
WPF ➔ Installeur ClickOnce ➔ Plus besoin d’avoir .NET Framework installé ➔ Contrôle moderne WebView2
ASP.NET Core 8 ➔ Model binding supporte les records ➔
OpenAPI (ex-Swagger) supporté par défaut ➔ SignalR Hub Filters > Middleware des hubs ➔ Blazor > Cf. Jérôme & Jonathan !
Entity Framework Core 9 ➔ Relations many-to-many ❤ ➔ Table-per-type
mapping ➔ Mapping d’une entity avec une query ➔ Interception du SaveChanges > SavingChanges, SavedChanges ➔ Include() avec filtre ➔ Amélioration des migrations > Transactions et exclusion de tables
10 C# 9
C# 9 – Init-only properties 11 ➔ Propriétés initialisables à
l’instanciation uniquement
C# 9 - Records 12 ➔ Classe immutable par défaut
➔ Support de l’héritage ➔ Implémentation automatique > Comparaison par valeurs > GetHashCode() > Copy / Clone > PrintMembers / ToString()
C# 9 - Records 13 ➔ Copie avec with ➔
Déclaration plus compacte : positional records > Deconstruct()
C# 9 - Top-level Programs 14
C# 9 - Patterns 15 ➔ Patterns logiques : and,
or, not ➔ Patterns relationnels : <, <=, >, >= ➔ Compatible avec tous les patterns : is, switch, case
C# 9 - new() 16 ➔ Omission du type quand
il est implicite
C# 9 - Source Generator 17 ➔ Génération de code
source (quelle surprise !) ⚠ Preview ⚠ ➔ Complément ou remplacement pour la reflection, modification d’IL, tâches MSBuild ou T4
18 Visual Studio
Visual Studio 2019 16.8 19 ➔ Support Git
Visual Studio 2019 16.8 20 ➔ Support Git ➔ .NET
Analyzers
Visual Studio 2019 16.8 21 ➔ Support Git ➔ .NET
Analyzers ➔ Aide sur les noms de paramètre et types
Visual Studio 2019 16.9 Preview 22 ➔ Point-virgule automatique
Visual Studio 2019 16.9 Preview 23 ➔ Point-virgule automatique ➔
Using automatique après une copie
Visual Studio 2019 16.9 Preview 24 ➔ Point-virgule automatique ➔
Using automatique après une copie ➔ Génération de propriété bindée
@CyrilCathala in/cyrilcathala
[email protected]
Merci !