How to check for nullable reference type in C#C# 8.0 introduced nullable reference types. Since .NET 6 we are able to retreive nullability info.