C# Delegates and Events(en.csharp-online.net)
submitted by
Hyle(2755) 5 years, 6 months ago
Learn all about C# delegates and events. Excerpt: A delegate is a .NET class that encapsulates a method, but not in the same way other classes encapsulate methods. A delegate actually stores the address of a method that is contained in some other class. So, a delegate is really the equivalent of a function pointer in C++. However, they are also far more than that. In this article, I explain the many uses of delegates. I begin with a simple example using a delegate to invoke a method. Then, I show several other uses of delegates including multicast delegates, thread delegates, anonymous methods, asynchronous method calls, events, and Win32 callbacks.
read more...
|category: C#
|Views: 58
tags:
Delegates Events C# another
Everyones tags:
Your Tags: