Click here to Skip to main content
15,895,667 members
Articles / Programming Languages / C#

Delegate Event Lambda Expressions and Miscellaneous

Rate me:
Please Sign up or sign in to vote.
4.97/5 (15 votes)
26 Feb 2016CPOL16 min read 19.6K   276   13  
Loosely coupled small examples of delegates, events, anonymous methods, and closures in C#
This article gives 11 small examples in C# on delegates, events, anonymous methods, and closures. The examples cover topics such as basic delegates, generic delegates, delegate definition locations, delegate targets, Func, Action, events, anonymous methods, lambda expressions, closures, and the impact of delegate instances on garbage collection.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
I have been working in the IT industry for some time. It is still exciting and I am still learning. I am a happy and honest person, and I want to be your friend.

Comments and Discussions