- 博客(4)
- 收藏
- 关注
原创 Unity3d txt配置表读取
父类: //方法可扩展 public abstract class TxtConfig where T: TxtConfig,new() { private static Dictionarystring, T> dataDic = new Dictionarystring, T>(); static TxtConfig() { ParseTable(
2018-01-31 18:24:33 911 1
原创 C# Excel 转 Txt 配置表 及 C# 解析文件
需求: 假如有我有这些配置表: 想要生成txt配置表文件和cs解析文件,结果: cs解析文件: txt配置文件 1.下载Excel.dll文件,应用到工程中 2.创建ExcelReader类,读取excel文件 using System; using Excel; public class ExcelReader { public void OpenE
2018-01-31 18:10:03 1484
原创 一个方法返回多个数据项
方法1:使用out关键字 例: public class SingleFuncBack { public void ReturnDimensionns(int inputShape, out int height, out int width, out int area) { height = 0; width = 0;
2018-01-31 17:47:58 392
原创 列表排序
在使用List 在下面的例子中 Square就实现了IComparable借口,根据面积进行排序: class Program { static void Main(string[] args) { var data = new List() { new Square(5, 10), new Square(2, 3), new
2018-01-31 17:38:59 426
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人