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

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 all 33 articles
Browse latest View live