Skip to content

alainkaiser/c-sharp-14

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C# 14 Feature Showcase

A comprehensive demonstration of C# 14 language features targeting .NET 10.0.

Features Demonstrated

  • Field Keyword: Access auto-property backing fields directly in getters/setters without manual field declaration
  • Extension Blocks: Define extension methods, properties, and operators in a unified syntax block
  • Null-Conditional Assignments: Enhanced null-conditional operator support for assignments
  • Lambda Parameters Without Explicit Types: Simplified lambda expressions with inferred parameter types
  • Nameof for Unbound Generics: Use nameof operator with generic types without type arguments
  • Compound Assignment Operators: Enhanced compound assignment operator overloading
  • Partial Constructors and Events: Partial modifier support for constructors and events

Requirements

  • .NET 10.0 SDK
  • C# 14 language version

Running

dotnet run

Uncomment feature demonstrations in Program.cs to explore specific features.

About

c-saharp 14 showcase

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages