Exemple #1
0
        /// <summary>
        /// Serialize this object to the given serializer.
        /// </summary>
        public override void WriteTo(IXmlSerializer serializer)
        {
            serializer.StartDocument(null, Boolean.TRUE);
            var root = Root;

            if (root != null)
            {
                root.WriteTo(serializer);
            }
            serializer.EndDocument();
        }
Exemple #2
0
 /// <summary>
 /// Serialize this object to the given serializer.
 /// </summary>
 public override void WriteTo(IXmlSerializer serializer)
 {
     serializer.StartDocument(null, Boolean.TRUE);
     var root = Root;
     if (root != null)
         root.WriteTo(serializer);
     serializer.EndDocument();
 }