随笔分类 -  深入理解C#笔记

代码清单4-4 Person类的部分代码,其中包含了年龄的计算
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; namespace ConsoleApplication1 { class Program { static void Main(strin... 阅读全文

posted @ 2017-06-08 17:29 liuslayer 阅读(184) 评论(0) 推荐(0) 编辑

代码清单4-2 可空类型的装箱和拆箱行为 代码清单4-3 使用?修饰符来改写代码清单4-2
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; namespace ConsoleApplication1 { class Program { static void Main(strin... 阅读全文

posted @ 2017-06-08 15:32 liuslayer 阅读(150) 评论(0) 推荐(0) 编辑

代码清单3-12 获取泛型和已构造Type对象的各种方式
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; namespace ConsoleApplication1 { class Program { static void Main(strin... 阅读全文

posted @ 2017-06-07 15:29 liuslayer 阅读(246) 评论(0) 推荐(0) 编辑

代码清单3-10 一个完整的泛型枚举——从0枚举到9
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; namespace ConsoleApplication1 { class Program { static void Main(strin... 阅读全文

posted @ 2017-06-06 18:35 liuslayer 阅读(217) 评论(0) 推荐(0) 编辑

代码清单3-6 表示一对值泛型类
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { ... 阅读全文

posted @ 2017-06-01 11:47 liuslayer 阅读(165) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示