M
Mythran
We have written a generic class NameObjectCollection(Of T) that inherits
from NameObjectCollectionBase and implements IXmlSerializable. We have an
interface class IBaseCondition and several classes that implement
IBaseCondition (StringCondition, NumericCondition, etc.). We have another
class (SearchCriteria) that has a property (Conditions) which is defined as
Public ReadOnly Property Conditions() As NameObjectCollection(Of
IBaseCondition).
When we use return this SearchCriteria class from a web service, we get an
exception stating "System.NotSupportedException: Cannot serialize interface
IBaseCondition.".
Is there any way I can get this to work? We must be able to serialize the
IBaseCondition since the NameObjectCollection is a collection of
IBaseCondition.
Thanks,
Mythran
from NameObjectCollectionBase and implements IXmlSerializable. We have an
interface class IBaseCondition and several classes that implement
IBaseCondition (StringCondition, NumericCondition, etc.). We have another
class (SearchCriteria) that has a property (Conditions) which is defined as
Public ReadOnly Property Conditions() As NameObjectCollection(Of
IBaseCondition).
When we use return this SearchCriteria class from a web service, we get an
exception stating "System.NotSupportedException: Cannot serialize interface
IBaseCondition.".
Is there any way I can get this to work? We must be able to serialize the
IBaseCondition since the NameObjectCollection is a collection of
IBaseCondition.
Thanks,
Mythran