XmlSerialization to generate and consume XML

I want to talk about Xml Serialization this month. One of the work I was involved in recently required generation of XML and a I came across this wonderful technology which helps you generate and consume XML seamlessly.   If you are generating XML in a clumsy way using printf containing the XML tags, I…

4

Simple sample for Events and Delegates

I wanted to write a small sample to illustrate events and delegates. Here is a compact sample that illustrates it.   using System; public class EventSample {     public delegate void EventHandler();     public event EventHandler myeh;       public void Method()     {         Console.WriteLine(“Inside Sample Method … “);     }       public…

2