yaml is pretty good way to define config for an application rather than xml file. There are many libraries available for parsing yaml in C#. Two of the libraries i tried are: yamlconfig and sharpyaml. I liked the general concept behind yamlconfig but it wasn’t that good to just integrate and get started, so I chose sharpyaml over it.
The thing I liked about sharpyaml is how easy it is to get it going, I did not had much success with yamlconfig. Also yamlconfig looks far too fancy with Injectors and what not- to just get a simple yaml parsed. Anyway enough ranting.
Lets look at some code. This is the yaml file I want parsed: