DomainValidator not CLS compliant

Topics: Validation Application Block
Dec 2, 2007 at 4:11 AM
I get a compiler warning that says the DomainValidator is not CLS compliant because it uses an array argument. Is there a way to get around this using the DomainValidator? I'm trying to validate that an enum property is 2 of 5 possible enumerated values.
Dec 2, 2007 at 4:46 PM
Found a workaround. Created a custom domain validator that takes 5 individual object arguments instead of a list.


wimpleshapers wrote:
I get a compiler warning that says the DomainValidator is not CLS compliant because it uses an array argument. Is there a way to get around this using the DomainValidator? I'm trying to validate that an enum property is 2 of 5 possible enumerated values.