Contains an extension method for a System.Object that checks whether it is null and in case it is, throws an ArgumentNullException, otherwise returns the same instance.
$ dotnet add package Hafner.Extensions.Object.CheckNullThis micro package provides extension method System.Object.CheckNull() (restricted to reference types).
Package "Hafner.Extensions.Object.CheckNull" contains an extension method for a System.Object that checks whether it is null (Nothing in Visual Basic)
an in case it is, throws an ArgumentNullException with a speaking message (using the automatically filled in 2nd argument parameterName);
otherwise, the object is returned.
2.0, 3.0, 3.5, 4.0, 4.0.3, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, , ,
8.09.010.01.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1