摘要: Delegate in C# is similar to a function pointer in C or C++. But it's type-safe, and easy to use.
This delegate library in C++ implements the similar concept. Using a delegate allows the programmer to encapsulate a reference to a method inside a delegate object. The delegate object can then be passed to code which can call the referenced method, without having to know at compile time which method will be invoked.阅读全文
posted @ 2006-12-08 21:32 Kevin Wan 阅读(2346) 评论(0) 编辑