JsonConfig:基于json的配置框架

时间:2021-07-14 11:37:59
【文件属性】:
文件名称:JsonConfig:基于json的配置框架
文件大小:77KB
文件格式:ZIP
更新时间:2021-07-14 11:37:59
C# 配置文件 JsonConfig 是一个简单的配置框架,基于 json 和 .NET Framework 4.0+ 中可用的动态类型 入门 在您的项目中,添加对 JsonConfig.dll 的引用 使用 json 格式的配置将名为“app.json.config”的文件添加到您的项目中。 例子: { name : "My Project" , host : "localhost" , port : 80 } 如果您的项目不是Web项目,则需要将文件设置为“如果更改则复制到输出目录”。 只需在代码中使用动态配置对象,如下所示: Console . WriteLine ( " name: {0} " , JsonConfigManager . DefaultConfig . name ); Console . WriteLine ( " host: {0} " , Json
【文件预览】:
JsonConfig-master
----src()
--------JsonConfig()
--------test()
--------JsonConfig.sln(2KB)
----lib()
--------nunit()
----LICENSE.md(1KB)
----samples()
--------console()
--------web()
----README.md(941B)
----.gitignore(302B)

网友评论