I have the following method:
public bool IsValid { get { return (GetRuleViolations().Count() == 0); } } public IEnumerable GetRuleVio
How about:
public bool IsValid { get { return (GetRuleViolations().Cast().Count() == 0); } }