
C# 读写Json格式配置文件信息
这里对Josn解析,用的是Newtonsoft.Json,以下是核心代码public class JosnConfigHelper{ private static readonly object fileLock = new object(); private const string DefaultFilePath = "config.json"; /// summary /// 确保文件存在(线程安全) …
这里对Josn解析,用的是Newtonsoft.Json,以下是核心代码public class JosnConfigHelper{ private static readonly object fileLock = new object(); private const string DefaultFilePath = "config.json"; /// summary /// 确保文件存在(线程安全) …