2012年4月26日
摘要: 引用类型的对象的成员也是引用类型的:View Code using System;using System.Collections;namespace HashTableDemo{ class Program { class Employee { public string Name; public int Age; public Employee(string name, int age) { Name = name; ... 阅读全文
posted @ 2012-04-26 16:58 Lucien.Bao 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 事件关联的委托是按顺序串行执行的。View Code using System;namespace EventDemo{ class Program { static void Main(string[] args) { Job job = new Job(); job.DoJob(); } } class Job { public delegate void JobHandle(int max); public event JobHandle OnW... 阅读全文
posted @ 2012-04-26 16:55 Lucien.Bao 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 记录一下方便查看。View Code using System;using System.Collections.Generic;namespace IComparerDemo{ class Program { class Employee { public string Name; public int Age; public Employee(string name, int age) { Name = name; ... 阅读全文
posted @ 2012-04-26 15:03 Lucien.Bao 阅读(183) 评论(0) 推荐(0) 编辑