XE .NETConf 2024 - C# 13 - Session 16-11-2024
Added samples to demonstrate new features of C# 13 for my XE session at .NET Conf 2024 XE to try it you must install .NET 9 + open a terminal in VSCode and run dotnet watch
- you can test every single example modifing Program.cs if you want to follow the "live demo" you can check diff from files XXX_init.cs -> XXX_mid.cs -> XXX_ok.cs
inside any single EXn folder.
XE .NETConf 2023 - C# 12 - Session 18-11-2023
Added samples to demonstrate new features of C# 12 for my XE session at .NET Conf 2023 XE to try it you must install .NET 8 + open a terminal in VSCode and run dotnet watch
- you can test every single example modifing Program.cs if you want to follow the "live demo" you can check diff from files XXX_init.cs -> XXX_mid.cs -> XXX_ok.cs
inside any single EXn folder.
XE dotNETConf HotTopics - C# 11 - Session 18-11-2022
Added samples to demonstrate new features of C# 11 for my XE online session about .NET Conf 2022 HotTopics to try it you must install .NET 7 + open a terminal in VSCode and run dotnet watch
- you can test every single example modifing Program.cs to follow "live demo" you can check diff from files XXX_init.cs -> XXX_mid.cs -> XXX_ok.cs
inside any single EXn folder.
XE dotNETConf HotTopics - C# 10 - Session 12-11-2021
Added a .NET Interactive notebook to demonstrate new features of C# 10 for my XE online session about dotNETConf 2021 HotTopics to try it you must install .NET 6 + .NET Interactive extension for VSCode
XE dotNETConf HotTopics - C# 9 - Session 13-11-2020
This repo contains some slides and all the DEMO for my XE online session about dotNETConf 2020 HotTopics where I talk about C# 9
I used latest official release of .NET 5 and create a simple Console App for easy startup:
dotnet new console -n csharp9 -o csharp9
cd csharp9
dotnet run
I also edited the default csharp9.csproj file to specify the C# Languauge 9
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<LangVersion>9.0</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>
To try my project sample simply open VSCode and install C# Extension when promted
Than in the integrated Terminal simply run dotnet watch run
to execute the code, and follow istruction in the comment to run/test all my sample one-by-one to learn the new C# 9 features:
- Top Level Program + basic Class
- Init Only Properties
- Manual Immutable class
- Record + with-expression
- Positional Record + destructuring and inheritance
- Target Type new-Expression
- Enhanced Pattern Match
If you need more details about C#9 take a look at:
- C# 9 Realese notes
- Official C#9 What's new docs
- dotNETConf 2020 What's new in C# 9 video
- Great @MadsTorgersen talk about Future of C# 9+ video
- Article about "minimal" CRUD Web API using new C# 9 featues
If you need more details about C#10 take a look at:
If you need more details about C#11 take a look at:
- Official C# 11 What's new docs
- Great @MadsTorgersen talk about Future of C# 11 video
- Tutorial about implementing static virtual interface
- Docs about INumber
If you need more details about C#12 take a look at:
- Annunciong: Official release C# 12 article
- @MadsTorgersen talk at .NETConf about: What’s new in C# 12 video
- Tutorial exploring primary constructor
- Docs about collection expression
- Docs about using alias type
- Other Resources & Videos about C# 12 and beyond...