This project is read-only.
1
Vote

Property is null check is not working

description

Trying to check a property using the "is null" check always returns false:
class Person
{
    public string Name { get; set; } = null;
}

var result = new RuleValidator().ValidateExpressionRules(new Person(), new Rule("Name is null"));
Debug.Assert(result == true); // result is false
Am I missing anything in particular here?

comments