I am just trying the absolute basics but the conversion from TomlDocument to CLR type I can't get to work.
Number = 5
Then in a .NET 5 console project...
using System;
using Tomlet;
var f = TomlParser.ParseFile(@"testIn.toml");
f.GetInteger("Number");
Console.WriteLine(f.GetInteger("Number")); // => 5
var d = TomletMain.To<Data>(f);
Console.WriteLine(d.Number); // => 99
public class Data
{
public int Number { get; set; } = 99;
}
HI, Thanks for your work on Tomlet.
I am just trying the absolute basics but the conversion from TomlDocument to CLR type I can't get to work.
Then in a .NET 5 console project...
Where am I going wrong?