I was thinking that the previous post on Events and Delegates was quite self-explanatory. A couple of days ago, I received an email which said that may be it is not that good as to explain what I want to achieve in life through that event. So, I thou…
In my previous post, I spoke about a few very basic and simple reasons of using delegates - primarily callback. In this post, I'll talk about creating Events using delegates. I have tried to annotate the class with comments so that it is easy to comp…
I hear a lot of confusion around Delegates in C#, and today I am going to give it shot of explaining the stuff with easy to understand examples. First things first... I will consciously try NOT to use any technical jargon to explain this concept. So…
By now, I have shown the following usages of delegates... Callback and Multicast delegatesEventsOne more EventAsynchronous Callback - Way 1 - BeginInvoke > EndInvokeAsynchronous Callback - Way 2 - BeginInvoke > AsyncWaitHandle.WaitOne(x) > EndInv…
So far, I have discussed about Callback, Multicast delegates, Events using delegates, and yet another example of events using delegates. In this post, I will take this topic one step forward and show you an example of Asynchronous callbacks using del…
This is the final part of the series that started with... Callback and Multicast delegatesOne more EventAsynchronous Callback - Way 1 - BeginInvoke > EndInvokeAsynchronous Callback - Way 2 - BeginInvoke > AsyncWaitHandle.WaitOne(x) > EndInvoke &g…
In this part of making asynchronous programming with delegates, we will talk about a different way, which is a little better than Way 1. In the previous post, it was like a husband telling his wife... You know honey, I have a lot of work to do. Why d…
1.A type that defines an event member allows the type (or instances of the type) to notify other objects that something special has happened 2.defining an event member means that a type is offering the following capabilities: 1.A method can register…
VB.NET Program Structure C# Imports System Namespace Hello    Class HelloWorld        Overloads Shared Sub Main(ByVal args() As String)           Dim name As String = "VB.NET" 'See if an argument was passed from the command line           If arg…
本文转自:http://www.cnblogs.com/lify0407/archive/2007/08/01/838589.html c#.NET和VB.NET语法的比较   VB.NET C# Comments ' Single line only Rem Single line only // Single line /* Multiple     line  */ /// XML comments on single line /** XML comments on multiple l…