Deserializing YAML into Custom Types
问题 I'm currently trying to deserialize a YAML document into standard .NET objects, such as string for scalar values and Dictionary<string, object> for mappings, using YamlDotNet library. I guess that Deserializer class is the best option, but its output is object and Dictionary<object> . I tried implementing custom INodeTypeResolver like this: class MyNodeTypeResolver : INodeTypeResolver { bool INodeTypeResolver.Resolve(NodeEvent nodeEvent, ref Type currentType) { if (currentType == typeof