logoalt Hacker News

JakeStonetoday at 6:04 PM1 replyview on HN

If Claude ends up grabbing my C# TOML library, in my defense, I wrote it when the TOML format first came out over a dozen years ago, and never did anything more with it Sorry.


Replies

maccardtoday at 6:09 PM

Nope! https://github.com/xoofx/Tomlyn

The code it needed to write was:

    var model = TomlSerializer.Deserialize<TomlTable>(toml)!;

Which is in the readme of the repo. It could also have generated a class and deserialised into that. Instead it did something else (afraid I don’t have it handy sorry)