Click here to Skip to main content
Click here to Skip to main content

Anonymous Methods

, 15 Feb 2013
CodeProjectIn versions of C# previous to 2.0, the only way to declare a delegate was to use named methods. C# 2.0 introduces anonymous methods.Creating anonymous methods is essentially a way to pass a code block as a delegate parameter. For example:// Create a handler for a click eventbutton1.Click
This article is not currently available for viewing.

Please go to the Uncategorised Technical Blogs Table of Contents to view the list of available articles in this section.
| Advertise | Privacy | Mobile
Web04 | 2.8.140926.1 | Last Updated 15 Feb 2013
Article Copyright 2013 by Member 7677223
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid