必须填写至少10个字的日志
nnhy authored at 2012-07-27 18:48:21
692.00 B
X
using System.Xml;
using System.Xml.Serialization;

namespace XCode.DataAccessLayer
{
    /// <summary>可序列化数据成员</summary>
    abstract class SerializableDataMember : IXmlSerializable
    {
        #region IXmlSerializable 成员
        System.Xml.Schema.XmlSchema IXmlSerializable.GetSchema() { return null; }

        void IXmlSerializable.ReadXml(XmlReader reader)
        {
            ModelHelper.ReadXml(reader, this);

            // 跳过当前节点
            reader.Skip();
        }

        void IXmlSerializable.WriteXml(XmlWriter writer)
        {
            ModelHelper.WriteXml(writer, this);
        }
        #endregion
    }
}