Пример #1
0
        public void Serialize(OutputArchive archive, XElement value)
        {
            XmlOutputArchive xmlOutputArchive = archive as XmlOutputArchive;

            if (xmlOutputArchive != null)
            {
                xmlOutputArchive.Node.Add(value);
            }
            else
            {
                archive.Serialize(null, value.ToString());
            }
        }
Пример #2
0
 public void Serialize(OutputArchive archive, Guid value)
 {
     archive.Serialize(null, 16, value.ToByteArray());
 }
 public void Serialize(OutputArchive archive, KeyValuePair <K, V> value)
 {
     archive.Serialize("K", value.Key);
     archive.Serialize("V", value.Value);
 }