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

Introducing C# 9: Init only properties

Introduction .NET 5 brings a new version of the C# language: C# 9. In this...

View Article


Introducing C# 9: Records

Introduction C# 9 introduces Init-only properties that allow to make individual properties immutable. C# 9...

View Article


Introducing C# 9: Questions & answers about Records

Introduction You have been many to ask me questions about the records in C# 9...

View Article

Introducing C# 9: Top-level programs

Introduction C# 9 introduces a super fun feature: Top-level programs. What’s a Top-level program ?...

View Article

Introducing C# 9: Improved target typing

Introduction C# 9 brings a better target typing: “In C# 9.0 some expressions that weren’t...

View Article


Introducing C# 9: Improved pattern matching

Introduction Pattern matching has been introduced in C# 6 and has well evolved since. The...

View Article

Introducing C# 9: Extending Partial Methods

Introduction C# 8 (and above) has some restrictions regarding partial methods. For example : Partial...

View Article

Introducing C# 9: Native-sized integers

Introduction What are native-sized integers ? They are designed to be an integer which size...

View Article


Introducing C# 9: Covariant returns

Introduction In May 20th 2020, Microsoft introduced C# 9, among the features announced, there is...

View Article


Introducing C# 9: Attributes on local functions

Introduction Well. It has been a while since I wanted to write this post but...

View Article

Introducing C# 9: Static anonymous functions

Introduction C# 9 brings an important improvement to anonymous functions by allowing the modifier static...

View Article

Introducing C# 9: Extension GetEnumerator support for foreach loops

Introduction As you may know, in order to be able to iterate on a collection...

View Article

C#: Make your delegates asynchronous from synchronous delegates

Introduction I wanted to write this post because I realized that a lot of developers...

View Article


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