The coming of C#8

The coming of C#8

Nullable reference types Once, value types couldn’t be null, but that changed with the introduction of  System.Nullable<T> in C# 2, althoughthe syntactic sugar of the ‘?’ modifier which renders byte? and System.Nullable<byte> interchangeable is what stuck the most.  Of course for reference types null was always legal, but that’s about to change by extending the T? syntax to reference types too in order to allow :“developers to express whether a variable, parameter or result of a reference type is intended to be null or not and provide warnings when such variables, parameters, and results are not used according to that intent”.  This makes the following possible: class Person{//everyone has a first and…

Continue reading... The coming of C#8