It appears that YamlDotNet does not provide type information for yaml scalar values. It also appears that we cannot perfectly work this out ourselves as the yaml int 123 and yaml string "123" are both exposed by YamlDotNet as "123". I have raised an issue to try and confirm this with the YamlDotNet guy aaubry/YamlDotNet#6
-- Update -- Antoine has suggested we use the Style property to detect quoting and then the regex from the Yaml spec here http://yaml.org/spec/1.2/spec.html#id2804923
It appears that YamlDotNet does not provide type information for yaml scalar values. It also appears that we cannot perfectly work this out ourselves as the yaml int 123 and yaml string "123" are both exposed by YamlDotNet as "123". I have raised an issue to try and confirm this with the YamlDotNet guy aaubry/YamlDotNet#6
-- Update -- Antoine has suggested we use the Style property to detect quoting and then the regex from the Yaml spec here http://yaml.org/spec/1.2/spec.html#id2804923