Event publish and subscribe example

http://msdn.microsoft.com/en-us/library/w369ty8x.aspx

Example of event publish and subscribe

 Read more of this post
Advertisements

EventHandler

http://msdn.microsoft.com/en-us/library/ms366768.aspx

// C# non-generic version
[SerializableAttribute]
[ComVisibleAttribute(true)]
public delegate void EventHandler(Object sender,EventArgs e)

// C# 2.0:  Generic version
[SerializableAttribute]
public delegate void EventHandler<TEventArgs>(Object sender, TEventArgs e)

Read more of this post

The evolution of delegate creation from C# 1.0 to C# 3.0

http://msdn.microsoft.com/en-us/library/bb882516.aspx

http://msdn.microsoft.com/en-us/library/ms173176.aspx

In C# 1.0, you created an instance of a delegate by explicitly initializing it with a method that was defined elsewhere in the code. C# 2.0 introduced the concept of anonymous methods as a way to write unnamed inline statement blocks that can be executed in a delegate invocation. C# 3.0 introduced lambda expressions, which are similar in concept to anonymous methods but more expressive and concise.

Read more of this post

IEnumerable vs. IQueryable

http://www.codeproject.com/Articles/732425/IEnumerable-Vs-IQueryable

Below lists the differences between them based on their properties :

Read more of this post