1.         private void kryptonButton1_Click_2(object sender, EventArgs e)
  2.         {
  3.             Dictionary<string, List<string>> dict = new Dictionary<string, List<string>>();
  4.             dict.Add("test", new List<string>() { "t", "b" });
  5.  
  6.             System.IO.StringWriter xmlString = new System.IO.StringWriter();
  7.             using (System.Xml.XmlWriter writer = System.Xml.XmlWriter.Create(xmlString))
  8.             {
  9.                 System.Runtime.Serialization.DataContractSerializer serializer = new System.Runtime.Serialization.DataContractSerializer(dict.GetType());
  10.                 serializer.WriteObject(writer, dict);
  11.  
  12.                 Console.WriteLine(xmlString.ToString().Length);
  13.             }
  14.         }