aaubry / YamlDotNet

YamlDotNet is a .NET library for YAML
MIT License
2.48k stars 466 forks source link

How to Serialize an object with Directives, start and end marks (---, ...)? #829

Closed Develeon64 closed 10 months ago

Develeon64 commented 11 months ago

Hello there! Thanks for your library. I really enjoy using it, because it's very streight forward and works very simple :)

I only miss one information: How can I serialize to full document with maximum information (version specification, document start and end) like

%YAML 1.2
---
<serialized things here>
...
\n
EdwardCooke commented 11 months ago

I don’t think that is in the library. You would need to add that to the resulting string after serializing your object.

EdwardCooke commented 10 months ago

Since I gave an answer and I haven't heard back, I'm going to close the issue.