摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;//抽象类的一个实例namespace Abstruct{ abstract class Abclass { public v... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;//静态类用static标记//静态类的成员必须都是静态的//静态类是密封的,不可继承namespace StaticClass{ p... 阅读全文
摘要:
using System;using System.Runtime.InteropServices;using System.Text;/** 外部方法是在声明中没有实现的方法,常常是C#之外的编程语言编写的。* 1、用extern修饰符标记,在类的声明中没有实现,它的实现被分号取代* 2、声明和实... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;/** 扩展方法允许编写和声明它的类之外的类关联的方法* 1、扩展方法必须声明为static* 2、扩展方法声明所在的类也必须声明为st... 阅读全文