Creating anonymous methods is used to pass a code block as a delegate parameter.
// Create a handler for a click event
button1.Click += delegate(System.Object o, System.EventArgs e)
{ System.Windows.Forms.MessageBox.Show("Click!"); };
Please visit for time pass http://tamilsmsin.blogspot.com
ReplyDelete