摘要:
hashtable集合遍历可以根据key,value以及key+value 示例代码: Hashtable table = new Hashtable(); Student stu = new Student(); stu.Name = "李四"; stu.Age = 18; Student stu 阅读全文
摘要:
定义父类为虚方法时需要关键字 virtual 子类重写需要关键字 override 示例代码: //父类 public class People { //虚方法 //VR Virtual Reality 虚拟现实 //AR Augmented Reality 增强现实 public virtual 阅读全文
摘要:
is操作符用于检查对象和指定的类型是否兼容 as操作符主要用于二个对象之间的类型转换 //父类 public class Animal { public int age; } //子类 public class Cat:Animal { public string name; //无参构造 publ 阅读全文