private void kryptonButton1_Click_2(object sender, EventArgs e)
{
Dictionary<string, List<string>> dict = new Dictionary<string, List<string>>();
dict.Add("test", new List<string>() { "t", "b" });
System.IO.StringWriter xmlString = new System.IO.StringWriter();
using (System.Xml.XmlWriter writer = System.Xml.XmlWriter.Create(xmlString))
{
System.Runtime.Serialization.DataContractSerializer serializer = new System.Runtime.Serialization.DataContractSerializer(dict.GetType());
serializer.WriteObject(writer, dict);
Console.WriteLine(xmlString.ToString().Length);
}
}