05 2013 档案
如何将一个类型在FOREACH中使用
摘要:1 //让类能在FOREACH循环中使用 2 public class students 3 { 4 int i = -1; 5 6 student[] stus ; 7 public students() { 8 stus = new student[2]{ new student("xx"),new student("wsenmin") }; 9 }10 public IEnumerator GetEnumerator()11 {12 ... 阅读全文
posted @ 2013-05-27 19:57 wsenmin 阅读(279) 评论(0) 推荐(0)
复习整理2
摘要:CLR:公共语言运行库,一堆库类的集合。他可以运行C#,C++,vb.net。他是多语言开发的基础。CTS:一种规范,能在CLR上面运行的语言规范CLS:也是规范,能在CLR运行遵守的最小规范。程序集:包含程序的所有原始文件与一个清单,该清单包括程序集版本号,语言,发布者,导入类。应用程序域:规定了代码执行范围,多个应用程序域通信是困难的,所以它也能隔离错误。应用程序域与进程的区别 :在一个应用程序中出现的错误不会影响其他应用程序。因为类型安全的代码不会导致内存错误,所以使用应用程序域可以确保在一个域中运行的代码不会影响进程中的其他应用程序。能够在不停止整个进程的情况下停止单个应用程序。使用应 阅读全文
posted @ 2013-05-27 00:24 wsenmin 阅读(223) 评论(0) 推荐(0)
复习整理
摘要:#region 多态继承 public abstract class animal { public void Eat() { Console.WriteLine("animal Eat"); } public virtual void Call() { Console.WriteLine("animal Call"); } public abstract void live(); } public class ca... 阅读全文
posted @ 2013-05-26 23:26 wsenmin 阅读(160) 评论(0) 推荐(0)