Archives for November, 2022
C#11 features – Required Members
A new keyword required is introduced in C# 11 where it will be decorated to the instance property and field declaration within a class/record/struct. Whenever a class is declared with a property…
C#11 features – Raw String Literals
Raw String Literals are the new format of string literals introduced since C# 11. This new format can help us in getting the output string with any arbitrary text like…
C#11 features: Newlines in string interpolations
The string Interpolation feature was introduced in C# 6 and this is a replacement for () method. In Format() we use to keep placeholders with sequence numbers and we need to…
Introducing File Scoped Types in C# 11
Since the evaluation of C#, we have seen many access modifiers introduced, and similarly, in C# 11, file-scoped type is a new access modifier mainly designed for code generator authors where…