XML Serialization - Interface

J

joss

I have a base class that inherits from CollectionBase that stores a
group of objects that inherit from an interface (let's call it
IEntity). The default item[] property and Add() method both handle
IEntity types, and I implement this interface on several objects. When
trying to serialize it I get a serialization error ("cannot serialize
interface IEntity") when I try to return a class that contains a
property that uses the collection type.
I tried shadowing the item[] member to return a class type rather than
an interface type, but no luck.

I'm starting to loose the rest of my hair ;-)

Thanks in advance,

Josselin
 
J

joss

nope. I wouldn't think that is related.
This is an inteface, the class inheriting is is declared as
Serializable.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top