我使用了C#、YamlDotNet,并遵循下面的示例:How to deserialize YAML with YAMLDotNet?但我得到了以下错误: Exception thrown: 'YamlDotNet.Core.YamlException' in YamlDotNet.dll
YamlDotNet.Core.YamlExceptionat YamlDotNet.Serialization.TypeInspectors.TypeInspe
相关的C#对象:{ public\YamlDotNet\Serialization\ValueDeserializers\AliasValueDeserializer.cs:line 134
at YamlDotNet.Serialization.Deserializer.Deserialize(IParser parser, Type t
我需要使用Kubernetes生成的YAML,并且我希望能够使用类似XPath的或jq-like DSL符号在C#中读取特定的属性。在C#中反序列化和读取YAML的最流行的解决方案似乎是,但它主要面向反序列化为完全类型的对象。 .AsList;
// expected result: list of all pod nam
我正在使用Yaml Nuget-package在C#/.Net Framework中读写YamlDotNet文件。在写入yaml文件时,会在文件末尾创建3个点。因为这些点是可选的,所以我不需要它们。using YamlDotNet.RepresentationModel;
var input = new StreamReader(Constants.YamlFilePath);