Add to Google Add to My Yahoo!

Live Chat Here


Articles on ASP.NET

Monday, July 16, 2007

Xml serialisation


http://weblogs.asp.net/cazzu/archive/2004/01/23/62141.aspx
--
Regards,
Munish Kalra

http://kalraonaspnet.blogspot.com
http://munishmca.co.nr

Xml mapping advanced


http://msdn.microsoft.com/msdnmag/issues/03/06/XMLFiles/
--
Regards,
Munish Kalra

http://kalraonaspnet.blogspot.com
http://munishmca.co.nr

Xml serialisation

How to handle events

 
Submit.Click += new EventHandler(Submit_Click); … void Submit_Click(object sender, EventArgs e) {     // Handle the click }

In 2.0, anonymous delegates come in handy when event handlers are short enough.

Submit.Click += delegate (object sender, EventArgs evt) {    // Handle the click };

is the same is

Submit.Click += delegate {    // Handle the click };

But I slapped myself on the forehead when I saw this "shorthand" syntax, which is equivalent to the first example:

Submit.Click += Submit_Click; … void Submit_Click(object sender, EventArgs e) {     // Handle the click }


--
Regards,
Munish Kalra

http://kalraonaspnet.blogspot.com
http://munishmca.co.nr