2009年10月15日

C#接口

摘要: 接口(C# 参考)  接口只包含只有方法,属性,索引器(有参属性),事件四种成员。方法的实现是在实现接口的类中完成的,如下面的示例所示:  interface ISampleInterface  {  void SampleMethod();  }  class ImplementationClass : ISampleInterface  {  // Explicit interface mem... 阅读全文

posted @ 2009-10-15 13:29 山河星月 阅读(155) 评论(0) 推荐(0) 编辑

导航