h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

Anonymous Methods in C#

Anonymous Methods in C#
               C# supports delegates for invoking one or multiple methods. 
               Delegates provide operators and methods for 

  •                              adding and removing target methods, and are used extensively throughout the .NET Framework for events, 
  •                              callbacks, 
  •                             asynchronous calls, 
  •                              multithreading. 

             Anonymous methods is a new feature in C# 2.0 that lets you define an anonymous (that is, nameless) method called by a delegate.

No comments:

Post a Comment