摘要: int[] arr = new int[]{1, 3, 5, 7 ,9}; var result = from s in arr where s //因为我们知道数组的类型 大多数情况下可以通过var让程序自动判定返回的类型 // 其中 s 默认识别类型为int 当然我们也可以定义一个明确的类型 比如object ... 阅读全文
posted @ 2017-11-23 16:28 我是外婆 阅读(91) 评论(0) 推荐(0) 编辑
摘要: namespace console_父类子类 { class Program { public static void Main(string[] args) { showTest t = new showTest(); // 情况1 默认情况下调用父类的方法 t.show(n... 阅读全文
posted @ 2017-11-23 10:44 我是外婆 阅读(1544) 评论(0) 推荐(0) 编辑