摘要:
数组: Int [] intArray = new int[6]; Int [][] intArray = new int[2][]; Int [][][] intArray = new int[2][][]; intArray[1][2][1] = 3; Int [ , ] myTable = n 阅读全文
摘要:
方法重写: 基类方法标识virtual关键字,子类(继承类)中方法重写标识override关键字。 重写的方法必须跟基类的类型相同,如方法名称、返回和接受参数。 public class Class1 { public virtual void show(int i) {……} } public class C... 阅读全文
摘要:
今天在实验当中发现了很不错的节省json流量方式,来做个笔记给大家分享一下。 如果跟服务器传递键值对的数组,我们一般会采用下面方式 创建一个字段 public class kv { public string key { get; set; }; public string value { get; 阅读全文