I am moving code that already exists in two projects and compiles without errors in each project. I’ve created a dll
and am moving the common parts from the applications to the dll
.
In each of the applications there is a class which contains:
public DataRow NodeRow;
Then in the class constructor:
NodeRow = null;
In the applications this builds without warnings or errors, however when I move the same class to the dll
, I see warnings on:
NodeRow = null;
The warning is:
warning CS8625: Cannot convert null literal to non-nullable reference type.
I’m quite new to C# so please excuse me if this is a really newbie issue.