SamboyCoding / Tomlet

Zero-Dependency, model-based TOML De/Serializer for .NET
MIT License
155 stars 29 forks source link

Test and fix for empty inline tables #5

Closed ITR13 closed 3 years ago

ITR13 commented 3 years ago

Previously deserialization errored when getting a valid toml file in the form: empty = { }

Such a field is currently generated when serializing an array of a class, which seems to be a different bug:

public class SomeClass
{
    public OtherClass[] OtherClasses;
}

[Serializeable]
public class OtherClass
{
    public int SomeValue;
}
SamboyCoding commented 3 years ago

Thank you, very appreciated! Looks all good to me, and the test passes, so I'll get this merged and pushed to nuget for you.

SamboyCoding commented 3 years ago

The release containing this fix (1.3.3) is now live on nuget.