Tomlet
Tomlet copied to clipboard
Zero-Dependency, model-based TOML De/Serializer for .NET
Make a custom de/serializer for Nullable when registering one for array, list, etc, and have handling in GetCompositeDeserializer - probably make that system less ugly, too.
Fixes issue where GetTopLevelAndSubKeys splits a key when serializing. Adds test to handle new cases. Does not test cases with mixed " and ' due to issue explained in #37.
Using latest Tomlet (5.3.0) Code ```c# using Tomlet; ... var doc = new TomlParser().Parse("test.toml") ``` test.toml ``` [[a.b]] name = "nick" ishuman = true [[a.b]] name = "jack" ishuman =...
Considering the following toml file: ```toml [package] authors = [ "me", "I", "myself" ] name = "proj" version = "0.0.1" [profile] ``` After loading and saving it with the following...
While the library is adequately efficient, there appears to be a significant amount of string manipulation occurring. To enhance performance and efficiency, it would be beneficial to incorporate the use...
```csharp public bool CanBeSerializedInline { get { if (!this.IsTableArray) return true; return this.ArrayValues.All((Func) (o => o is TomlTable tomlTable && tomlTable.ShouldBeSerializedInline)) && this.ArrayValues.Count
Let's start with simple stuff: ``` // Example 1 namespace DynamicDictionaryTest { using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Dynamic; using Tomlet; using Tomlet.Attributes; public class GameState {...