Files
JackCraft.Config/Test/Program.cs
2025-01-21 19:02:09 +08:00

27 lines
631 B
C#

using JackCraft.Config;
namespace Test;
internal static class Program
{
private static void Main(string[] args)
{
Console.WriteLine("Hello, World!");
var testClass = new TestClass
{
Test = "test",
Abc = 123
};
var config = new Config(new FileInfo("./config.json"));
var a = config.Get("aaa.www.www", "555");
var b = config.Get("aaa.bbb", "1");
var c = config.Get("aaa.sss", "1");
var d = config.Get("bbb.sss", "1");
}
}
public class TestClass
{
public string? Test { get; set; }
public int Abc { get; set; }
}