YamlとC#
var yaml = new YamlStream();
using (var input = new StreamReader (yamlPath, Encoding.UTF8))
{
yaml.Load(input);
}
var mapping =(YamlMappingNode)yaml. Documents[0].RootNode;
foreach (var entry in mapping. Children)
{
Console.WriteLine(((
// List all the items
var items = (YamlSequenceNode)mapping. Children [new YamlScalarNode("Items")]; foreach (YamlMappingNode item in items)
Console.WriteLine(
$"{item.Children [new YamlScalarNode("Name")]}"
);
}
コメント
コメントを投稿