4

Is there any way to generate comments during serialization? I serialize some objects that I would like to decorate with comments.

Tomasz Plonka
  • 285
  • 4
  • 12

1 Answers1

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