DomainValidator should allow null as a valid value

Topics: Validation Application Block
Jan 23, 2008 at 5:40 AM
I think DomainValidtor should allow null as a valid value.

[DomainValidator(null, true, RuleSet="LargeFile")]
public bool? Compressed
{
get;
set;
}

instead we have to define 2 attributes

[IgnoreNulls(RuleSet="LargeFile")]
[DomainValidator(true, RuleSet="LargeFile")]
public bool? Compressed
{
get;
set;
}

When you have multiple rule sets, it gets cumbersome.