Questions tagged [yamldotnet]

YamlDotNet is a .NET library for YAML

YamlDotNet provides low level parsing and emitting of YAML as well as a high level object model similar to XmlDocument. A serialization library is also included that allows to read and write objects from and to YAML streams.

The most up-to-date version can always be found right from Visual studio by installing following NuGet package - YamlDotNet.

PM> Install-Package YamlDotNet

Documentation can be found on the official page.

188 questions
0
votes
1 answer

Using objects inside objects

Trying to use the serializer of YAMLDOTNET, having some problems when I have and object which is not composed of just strings but also has an special object inside. When serializing I will just get a {} string. If for example on the Serializing an…
OscarSanhueza
  • 317
  • 2
  • 13
0
votes
2 answers

YamlDotNet what is the object equivalent?

I have 2 setups: 1 - container: - ParamA - ParamB - ParamC 2 - container: ParamA: X ParamB: Y ParamC: Z In scenario 1 it seems to be deserialized into a class container with ParamA, ParamB, and ParamC. public class Container { …
tbgox
  • 221
  • 5
  • 10
0
votes
1 answer

issues while serializing to YAML file

I have started using .net API for yaml and it seems to be helpful. However I have few questions and wondering if you can provide some sample/work around for the same. (1) I have an object consisting 4 strings I would like to serialize its collection…
0
votes
2 answers

Parsing Unity3D Animator Controller results In SemanticErrorException

I am working on a C# script to modify Animation Controllers in Unity3D 4.1 from code. Therefore I parse the controller using the YamlDotNet yaml parser but I am running into an error when trying to parse the controller file. I tried it with other…
Thomas Mondel
  • 1,944
  • 3
  • 20
  • 25
-1
votes
1 answer

Need help in deserializing unity asset bundle manifest file

I need to deserialize main Unity asset bundle manifest in order to merge them later (all in one). How do you approach something like this : ManifestFileVersion: 0 CRC: 4271548926 AssetBundleManifest: AssetBundleInfos: Info_0: Name:…
Roma Fedor
  • 19
  • 7
-1
votes
1 answer

getting error while deserializing yaml file

There is no problem with serialize but deserializing throw error like below. I shared all related classes and error. What should I do to deserialize this file. yaml file (created by yaml serializing) : Edits: 0: Id: 20 Type:…
t. YILMAZ
  • 229
  • 5
  • 19
-2
votes
1 answer

Serializing a List> not working properly

I have a yaml file that looks like this: pcap: - interface: eth0 - interface: default I would like, through my ASP.NET (C#) program, to add to this section, more lines according to what the user requests. So my code looks like this: var path =…
prog_prog
  • 371
  • 2
  • 5
  • 15
1 2 3
12
13