Skip to content

dmorosinotto/XE_dotNETConf_HotTopics_CSharp

Repository files navigation

XE_dotNETConf_2023_CSharp12

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_CSharp11

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_CSharp10

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_CSharp9

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

Initial setup project

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>

Try it

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:


References

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:

  • Official C# 10 What's new docs
  • C# 10 .NET 6 Improvment new features video

If you need more details about C#11 take a look at:

If you need more details about C#12 take a look at:

About

XE Session - dotNETConf Hot Topics - C# 9 @13-11-2020 + C# 10 @12-11-2021 + C# 11 @18-11-2022 + C# 12 @18-11-2023

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published