Tomlet
Tomlet copied to clipboard
When serializing objects to TOML, the original file's comment content was not preserved.
[ItemMaxStackSize]
enable = true # The comment disappears when deserialized into an object and then serialized back to TOML.
size = 999
Tomlet cannot magically associate comments with the deserialized object. To preserve this comment you would need to parse to a document manually, keep that document around, deserialize the document to your object, then when re-serializing copy the comments back over from the old document. Or annotate the model classes with the attributes as described in the readme.