Is it possible to serialize a class inheriting from microsoft.practices.enterpriselibrary.validation.validationresults.
When I create the object of
XmlSerializer xs = new XmlSerializer(typeOf(subclass of ValidationResults));
it gives following exception at runtime.
To be xml serializable types which inherit from ienumerable must have an implementation of add(system.object) at all levels of their inheritance hierarchy. microsoft.practices.enterpriselibrary.validation.validationresults does not implement Add(System.Object) method.
Why do I get this exception? Is there any workaround for this issue. So that I can serialize the ValidationResults?