C# 3.0 扩展方法&接口
摘要:
namespace ExtensionInterfaceMethod{ class Program { static void Main(string[] args) { //使用接口变量来调用扩展方法 IBasicInterface bii = new BasicImplement(); bii.SubStract(9, 3); } } //先创建一个简单的接口 public interface... 阅读全文
posted @ 2010-02-23 16:16 falla.zhang 阅读(859) 评论(0) 推荐(0) 编辑