Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What the heck is this and when is it coming?
Message
From
23/11/2003 06:49:46
 
 
To
20/11/2003 12:34:20
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00851945
Message ID:
00852728
Views:
4
Dean,

Don't worry the C# (2.0) specific stuff thats coming in Whidbey will make life a lot easier when writing C# code. For example the C# compiler will take a lot of work out of dealing with delegates so that you will be able to write code like this:
button1.Click += delegate { MessageBox.Show("Button Clicked"); }; 
Instead of ...
button1.Click += new EventHandler(button1_Click);

void button1_Click(Object sender, EventArgs e) {
   MessageBox.Show("Button Clicked"); 
}
There is a great article by Jeffrey Richter which shows the new syntax options available when dealing with delegates. This is a good example of MS increasing developer productivity with C# through refinment of the language syntax.

http://www.codeguru.com/cs_delegates/WorkingWithDelegates.html

I am personally more excited about Whidbey than I ever was with Everett.

Neil
Previous
Reply
Map
View

Click here to load this message in the networking platform