I have the following method:
public bool IsValid { get { return (GetRuleViolations().Count() == 0); } } public IEnumerable GetRuleVio
Any() or Count() methods in Linq work only for generic types.
Any()
Count()
IEnumerable
If you have a simple IEnumerable without a type, try to use
instead.