There is released .NET 6 with alot of features as well!
For example, how to check if object is null or not null.
You could check it like this:
But if you want to check if its not null, in past, that was a little ugly:Code:if(myObject is null) { ... }
But, in .NET 6, you can use it in such way now:Code:if(!(myObject is null)) {...}
Code:if(myObject is not null) { ... }