dezhidki / Tommy

A single-file TOML reader and writer for C#
MIT License
206 stars 16 forks source link

Unable to write all nodes inside an array or a table #39

Open vrmvgf opened 1 year ago

vrmvgf commented 1 year ago

using(StreamReader reader = File.OpenText("configuration.toml"))

{ TomlTable table = TOML.Parse(reader); foreach(TomlNode node in table["database"]["ports"]) Console.WriteLine(node); } There is a problem, CS0121: The call is ambiguous between the following methods or properties: 'Console.WriteLine(bool)' and 'Console.WriteLine(int)'

LovelyA72 commented 1 month ago

I am having the same issue