摘要:
以下内容转自MSDN:http://msdn.microsoft.com/zh-cn/library/ms173173.aspx委托和接口都允许类设计器分离类型声明和实现。 任何类或结构都能继承和实现给定的接口。 可以为任何类上的方法创建委托,前提是该方法符合委托的方法签名。 接口引用或委托可由不了... 阅读全文
posted @ 2014-07-16 10:39
学业未成
阅读(298)
评论(0)
推荐(0)
摘要:
//Demo1:Declaring an event in an interface and implementing it in //a class.// event_keyword.csusing System;public delegate void MyDelegate(); // de... 阅读全文
posted @ 2014-07-16 10:37
学业未成
阅读(357)
评论(0)
推荐(0)
摘要:
A delegate is a type that safely encapsulates a method, similar to a function pointer in C and C++. Unlike C function pointers, delegates are object-o... 阅读全文
posted @ 2014-07-16 10:16
学业未成
阅读(1809)
评论(0)
推荐(0)
浙公网安备 33010602011771号