Exemplo n.º 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();
        }
Exemplo n.º 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();
 }