Ejemplo n.º 1
0
 /// <summary>Write an array of elements with no inner nodes.
 /// Element type is inferred by calling obj.GetType().</summary>
 public static void WriteValueArray(this ITreeWriter obj, string elementName, IEnumerable <object> values)
 {
     obj.WriteStartArrayElement(elementName);
     foreach (object value in values)
     {
         obj.WriteArrayItem(value);
     }
     obj.WriteEndArrayElement(elementName);
 }