/NET6.Features

This is a demo of some of the .NET 6 and C# 10 features.

Primary LanguageC#MIT LicenseMIT

.NET 6 Features

This is a demo of some of the .NET 6 and C# 10 features.

  • System.Linq

    • Chunk()
    • ElementAtOrDefault()
    • MinBy()
    • MaxBy()
    • DistinctBy()
    • ExceptBy()
    • IntersectBy()
    • UnionBy()
    • Zip()
    • TryGetNonEnumeratedCount()
  • C# 10

    • Record structs
    • Global using
    • File-scoped namespaces
    • DateOnly
  • Minimal APIs


You'll need to set up your machine to run .NET 6 or later, including the C# 10 or later compiler. The C# 10 compiler is available starting with Visual Studio 2022 or the .NET 6 SDK.