Пример #1
0
 public void SerializeHive(ElementHive hive)
 {
     foreach (var kvp in hive.Components)
     {
         Serialize(kvp.Value);
     }
 }
Пример #2
0
 public static string Serialize(ElementHive hive)
 {
     using (var writer = new StringWriter())
     {
         var serializer = new Serializer(writer);
         serializer.SerializeHive(hive);
         return(writer.ToString());
     }
 }