Hello my dear developers How do you feel today? On the current release Visual studio 2022 among other functionalities, they improved suggestions on your code. Specially, there is a lot of “possible null reference return”. To avoid the infamous billon dollar mistake we are going to use another listed refactor, the do an introduce null object refactor. public record EmptyPiece:Piece
{
public EmptyPiece():
base(string.Empty, string.Empty, new Position(string.Empty, 0))
{
}
}