Tomlyn
Tomlyn copied to clipboard
Tomlyn is a TOML parser, validator and authoring library for .NET Framework and .NET Core
If a unicode character is in string value in file, then, upon file rewrite (that value is not changed in model) it is replaced with actual characters. For example, was:...
When I tested serializing char type property, 'System.InvalidOperationException : Invalid primitive System.Char' exception occurred. I guess that 'private void WritePrimitive(object primitive, TomlPropertyDisplayKind displayKind)' function should deal with char type. there...
In the same way that `System.Text.Json.JsonSerializer` provides [`SerializeAsync`][1] and [`DeserializeAsync`][2], is it possible to provide `Async` versions of `ToModel` and `FromModel`? [1]: https://docs.microsoft.com/en-us/dotnet/api/system.text.json.jsonserializer.serializeasync?view=net-6.0 [2]: https://docs.microsoft.com/en-us/dotnet/api/system.text.json.jsonserializer.deserializeasync?view=net-6.0
Hi, Really nice work! I like the syntax of TOML. Currently our configuration is already structured in classes and we use JSON to serialize and deserialize. I tried to use...
While certain runtime serializations are pretty hard to do under AOT/Trim, I think most functionality could remain with it enabled, and the rest could work via a source analyzer. Either...
Currently, if we take this example: ```fsharp [] let ``Multi-line string should serialize properly to multi-line toml entry``() = let table = TomlTable() let newLineString = "Hello\nNewline" table.Add("Example", newLineString) let...
There is no toString method in TomlFormatHelper defined for the decimal floating point type. Decimal numbers are then simply missing from the output. Reading numbers into a decimal type works....
It seems like floats < 1.0 get serialized weird. For example, .1 gets serialized as 0.100000001 and .99 gets serialized as 0.99000001.
Hello Alexandre, thank you for sharing your code! It would be very nice if the dlls in your nuget package were digitally signed. There are guys out there who can...
Hey there, Thanks for your awesome Toml parser. Is there a way to retrieve the line in which a toml element is located? For example, how can I find out...