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