Hello,

> Does the mono implementation of System.Xml.Serialization.XmlSerializer allow
> methods or properties to use interfaces?  An interface and an abstract class
> should work exchangeable but the Microsoft runtime does not allow interfaces
> even when using the XmlElement(Type = typeof(someType)) attribute on that
> property.

...Oops, your code didn't work well with current mono library.
There must be something wrong with XmlSerializer class;-)

IMHO, it it impossible to serialize instance fields because we cannot
decide that interface field is of a public class, and we cannot create
instance only from interface information (i.e. without any concrete
class information). Hmm... I wonder how Castor handles such things...

This page might informative for you:
http://www.dotnet247.com/247reference/msgs/16/80980.aspx

Cheers,

-- Atsushi Eno

_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to