-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: SitaramanM
Message 1 in Discussion

Hi   One of the new features to be introduced in the C# language is the concept of 
"Anonymous Methods".  I understand that "Anonymous Methods allow programmers to create 
code blocks that can be encapsulated in a delegate and exexuted at a later time".     
For example instead of writing  button.click += new EventHandler(AddClick);   void 
AddClick(object sender, EventArgs e) {    lbox.items.add("xyz") } i can write   
button.click += new EventHandler(sender,e) {      lbox.items.add("xyz") }; Also 
understand that when the compiler encounters an Anonymous delegate,  it will create a 
specially named class+specially named method(just as in the case of ststic keyword 
inside a VB.Net method) and this special metho will be executed, when the delegate is 
invoked   Is that right!!!   If so, My questions are 1) what are the advantages  of 
this feature 2) Any example of a practical implementation, where this new feature will 
help me??? 3) When will these features be available(timeline)???       regards,   sr

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to