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()); } }
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); }