R – .Net class with NHibernate and XmlSerializer

nhibernatexml-serialization

Have a .net class that I want to persist/retrieve to/from Oracle 11g database using NHibernate. Contains an array of objects that NHibernate insists must be the interface type IDictionary, ISet, or IList. I also need to serialize the class to XML using XmlSerializer, however, XmlSerializer cannot serialize members of type IList (for example) "because it is an interface". Anyone have a solution to this problem?

Best Answer