如何解析 Yaml?
How parse Yaml?
如何将 Yaml 解析为 yaml-node 树?
我找到了 sharpyaml 库,但没有找到 yaml 的简单示例 loading/parsing/etc
var serializer = new SharpYaml.Serialization.Serializer();
var yamlTree = (Dictionary<object, object>)serializer.Deserialize(new StringReader(text));
如何将 Yaml 解析为 yaml-node 树?
我找到了 sharpyaml 库,但没有找到 yaml 的简单示例 loading/parsing/etc
var serializer = new SharpYaml.Serialization.Serializer();
var yamlTree = (Dictionary<object, object>)serializer.Deserialize(new StringReader(text));