Is there any way to generate comments during serialization? I serialize some objects that I would like to decorate with comments.
Asked
Active
Viewed 594 times
1 Answers
0
The serializer does not support emitting comments. This is so because comments are a presentation detail and are not associated with a particular node. If you really want comments, you can create a YamlDocument, which allows you to add comments to it.

Antoine Aubry
- 12,203
- 10
- 45
- 74