Quantcast
Channel: C# – Anthony Giretti's .NET blog
Browsing latest articles
Browse All 33 View Live

Introducing C# 10: Global usings, example with ASP.NET Core 6

Introduction .NET 6 preview 6 has been released a few days ago, and the great...

View Article



Introducing C# 10: Seal overriden ToString() method on records

Introduction Microsoft has introduced last year records. Which a new way to declare object. Records...

View Article

Introducing C# 10: Constant interpolated strings

Introduction C# is still evolving, this time with C# 10 we will focus on constants....

View Article

Introducing C# 10: Mix declarations and expressions in a deconstruction

Introduction Deconstructing an object in C# like JavaScript has been possible in C# for some...

View Article

Introducing C# 10: Extended property patterns

Introduction C# 8 has introduced a new pattern: Property pattern. This pattern enables you to...

View Article


Introducing C# 10: Record struct

Introduction Last year with the release of C# 9, Microsoft introduced records. The record keyword...

View Article

Introducing C# 10: File-scoped namespaces

Introduction C# is still evolving and C# 10 proposes a new feature : file_scoped namespaces....

View Article

Introducing C# 10: Structs parameterless constructor and instance field...

Introduction I’m going to talk in this post about an important feature of C# 10...

View Article


Introducing C#11: Auto Default structs

Introduction C# 11 improves Structs compared to C# 10 (and earlier). Before C# 11, every...

View Article


Introducing C#11: Raw string literals

Introduction C# 11 brings new syntax for writing plain text. Instead of relying on string...

View Article

Introducing C#11: List Pattern

Introduction With C# 11, it is possible to match an array or list that matches...

View Article

Introducing C#11: Required properties

Introduction C# 11 improves the initialization of objects and struct. Marking one or more properties...

View Article

Introducing C#11: Newlines in string interpolation expressions

Introduction C# 11 brings an improvement on string interpolation. Previously it was impossible, apart from...

View Article


Introducing C#11: Pattern match Span and ReadonlySpan on a constant string

Introduction Before C# 11 it was impossible to use pattern matching on a constant string...

View Article

Introducing C#11: Extended nameof parameter scope

Introduction C# 11 brings a novelty in the use of a method or parameter attribute....

View Article


Introducing C#11: UTF-8 String Literals

Introduction .NET encodes strings with UTF-16 encoding. However in the world of the web, the...

View Article

Introducing C# 11: Numeric IntPtr and UIntPtr

Introduction Before explaining to you what’s new in C# 11 on the IntPtr and UInPtr...

View Article


Introducing C#11: File local types

Introduction Have you ever developed/consumed identically named objects and pulled your hair out encapsulating them...

View Article

Introducing C# 12: Primary constructor on classes and struct

Introduction .NET 8 and C# 12 are available in preview and I’m glad to share...

View Article

C# 12: Introducing the spread operator on collections

Introduction .NET 8 and C# 12 are available in preview and I’m glad to share...

View Article
Browsing latest articles
Browse All 33 View Live




Latest Images