public void WriteTo(PropertyTreeWriter writer) { if (writer == null) { throw new ArgumentNullException(nameof(writer)); } writer.WriteNode(this); }
public void WriteContentsTo(PropertyTreeWriter writer) { if (writer == null) { throw new ArgumentNullException(nameof(writer)); } foreach (var s in Children) { writer.WriteNode(s); } }