Avoid CS8618 warning when initializing mutable non nullable property with argument validation
For now you can avoid this warning by initializing a _name field using default value with null-forgiving operator !, like private string _name = default!; or private string _name = null!; There is also an open GitHub issue for that. You can also declare the _name as string? and specify that return value of Name … Read more