I have:
public abstract class Craft
{
public Craft()
{
CurrentQuadrant = new Point(0, 0);
}
private Point _currentQuadrant;
public Point CurrentQuadrant
{
get => _currentQuadrant;
set
{
_currentQuadrant = value;
}
}
}
(Point is a simple x-y pair).
Why would that be giving me the warning that Non-nullable field '_currentQuadrant' must contain a non-null value when exiting the constructor
? Doesn't the assignment make sure it's non-null?