/// <summary> Write to YAML </summary> protected internal override void Write(WriteStream stream) { foreach (MappingNode node in childNodes) { stream.Append("? "); stream.Indent(); Yaml.Node key = node.Key; key.Write(stream); stream.UnIndent(); stream.Append(": "); stream.Indent(); node.Value.Write(stream); stream.UnIndent(); } }
/// <summary> Write back to a stream </summary> protected internal override void Write(WriteStream stream) { foreach (Node node in childNodes) { stream.Append("- "); stream.Indent(); node.Write(stream); stream.UnIndent(); } }
/// <summary> Write back to a stream </summary> protected internal override void Write(WriteStream stream) { foreach (Node node in childNodes) { stream.Append ("- "); stream.Indent (); node.Write (stream); stream.UnIndent (); } }
/// <summary> Write to YAML </summary> protected internal override void Write(WriteStream stream) { foreach (MappingNode node in childNodes) { stream.Append ("? "); stream.Indent (); Yaml.Node key = node.Key; key.Write (stream); stream.UnIndent (); stream.Append (": "); stream.Indent (); node.Value.Write (stream); stream.UnIndent (); } }