Coma: AutoConversion of TomlTable to Dictioary<...,...>not working
paiden opened this issue · comments
paiden commented
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...
donvreug commented
Hi Philipp,
Thanks for fixing that. Much appreciated.
Regards
Don
From: paiden [mailto:notifications@github.com]
Sent: Friday, 21 April 2017 12:06 AM
To: paiden/Nett <Nett@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: Re: [paiden/Nett] Coma: AutoConversion of TomlTable to Dictioary<...,...>not working (#17)
Closed #17<#17> via a13a2c4<a13a2c4>.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#17 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AWXHKSpsF1BRrotf6SJniNlAeRV44nNtks5rx4JjgaJpZM4M39Su>.