Looking for beginner examples / tutorials about C# delegates and (custom) events [closed]
I am looking for simple exampels and tutorials about C# delegates and custom events. Especially I want to use custom respectively own events for the communicat开发者_运维技巧ion between user controls in Winforms, but the examples I have found with Google are not easy for a "event"-beginner like me ;-) ! Many thanks in advance for your help and suggestions.
These links should help you get the gist of it:
- Working with Delegates in C#;
- Working with Delegates in C#;
- C# Delegates Explained;
- Working with Delegates Made Easier with C# 2.0;
- Delegates in C#.
Well, after having visited Elmex's link to the CodeProject article about simple delegate, I guess you have your example.
mybe this is the simplest event example: http://www.codeproject.com/KB/cs/simplesteventexample.aspx
If you want to understand Delegates and Events you MUST watch "Delegates and Events" created in 02/19/2007 by William Steele
It truly helped me. Good Luck.
精彩评论