📜 ⬆️ ⬇️

.NET ft. Yaml

Introduction


Developers often encounter application configuration problems, usually XML is used for this purpose, in this article I want to draw attention to a more friendly markup language.
YAML (YAML Ain't Markup Language) is a language (existing since 2001) for data serialization, focused on reading and editing human typical data structures. The language, as you might guess, is cross-platform. Known, for the most part, using Ruby On Rails as a configuration tool. Read more in Russian here: http://ru.wikipedia.org/wiki/Yaml

YAML Example


%Example

- - -
YAML: YAML is not a markup language.
What it is: YAML is a human-oriented data serialization standard for all programming languages.
Projects:

.NET:
')
- yaml-net

- yatools.net


.NET


You can use this language on .NET, for this there are:
  1. Visual Studio YAML Editor http://yaml.codeplex.com/
  2. YamlSerializer for .NET http://yamlserializer.codeplex.com/
  3. Yaml Library for .NET http://yaml-net-parser.sourceforge.net/default.html

Materials


Official site of the project http://yaml.org
Yaml in 5 minutes http://yaml.kwiki.org/index.cgi?YamlInFiveMinutesMinuteOne
A good article with an example of using http://www.codeproject.com/KB/recipes/yamlparser.aspx

Source: https://habr.com/ru/post/79013/


All Articles