I've recently stumbled upon the System.Diagnostics.CodeAnalysis namespace and the DisallowNull attribute. If I understand it correctly you should be able to decorate a parameter with it and Visual Studio should show a warning or error if you try to pass null to said parameter.
I.e.
void Test([DisallowNull] string str) { }
Test(null); //should generate some sort of alarm or shriek
But I don't see it happening in my project. What am I missing?
