Skip to content
This repository was archived by the owner on Oct 19, 2020. It is now read-only.
This repository was archived by the owner on Oct 19, 2020. It is now read-only.

Coma: AutoConversion of TomlTable to Dictioary<...,...>not working #17

@paiden

Description

@paiden

While Nett handles cases like these without problems:

public class Root
{
    public string X { get; set; }

    public Dictionary<string, bool> Items { get; set; } = new Dictionary<string, bool>();
}

const string tml = @"
X = 'test'
[Items]
one = true
two = false
three = true";

var x = Toml.ReadString<Root>(tml); //X.items has 3 items

Coma is not able to do so. Coma returns an empty dictionary for this scenario because it cannot convert the TomlTable to the Dictionary<string, bool>.

This is because for Coma different conversion rules are applied because of other type information is available at different points in time...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions