you class says it will implement IXmlSerializable, so have to implement
the methods.
public XmlSchema GetSchema()
{
return null;
}
public void ReadXml(XmlReader reader)
{
// write code to read xml and fill in your object
}
public void WriteXml(XmlWriter writer)
{
// write code to save your object as xml
}
if you object follows all the rules (all public properties are
serializable) and only public get/set properties need saving, then
instead of implementing IXmlSerializable, you can use the [Serializable]
attribute on your class:
[Serializable]
public class SSOMembershipUser
{
}
this is just a flag the the default xmlserialier can serialize the
object. it will throw a runtime error if it finds a property it can not
serialize.
-- bruce (sqlwork.com)
bobby wrote:
am trying to inherits membership class and implementing IXmlSerializable but
it doesn't work.
public class SSOMembershipUser : System.Web.Security.MembershipUser
,IXmlSerializable
'SSO.Security.SSOMembershipUser' does not implement interface member
'System.Xml.Serialization.IXmlSerializable.GetSche ma()'