C# 写简单配置文件插件 SharpConfig 用法
2015-10-05 18:09
1076 查看
using SharpConfig; Configuration config = Configuration.LoadFromFile(Application.streamingAssetsPath + "/sample.cfg"); Section section = config["General"]; string someString = section["SomeString"].Value; int someInteger = section["SomeInteger"].GetValue<int>(); float someFloat = section["SomeFloat"].GetValue<float>(); object[] myArray = config["General"]["AnArray"].GetValue<object[]>();
相关文章推荐
- C#--索引
- C#--this关键字
- C# 接口的隐式与显示实现及适应场景
- readonly(C# 参考)
- C#中的async和await
- C#文件操作之FileMode
- C#学习日记12---数据类型 之 引用类型(前言)
- 闲来无事,学着用C#写邮箱助手、群发小工具
- C# 中栈和队的区别
- C#--静态构造函数
- C#--readlyonly关键字
- C#中使用NPOI将DataTable导出到Excel文件
- C#获取相对路径
- C#--类成员
- C# 添加,修改,删除Xml节点
- c#的注释规范
- Just4Fun - Comparaison between const and readonly in C#
- 在C#中动态地添加控件
- C#理解泛型(源代码)及 default(T)
- C#理解泛型