Introduction: In a WinForm application we can use as much encapsulated UserControls as we want. But what would happen if one of these UserControl must communicate with another one? Here we will have a look on 2 way to give our solution : Using Parent property of a control Using delegates and event programming The [...]
Posts Tagged ‘Delegate’
How using Delegates & Events instead of Parent Property
Posted in C# 2.0 Tips, tagged Delegate on November 12, 2009 | Leave a Comment »
Generic delegate Func
Posted in C# 3.0 Tips, tagged Delegate on September 4, 2009 |
Here’s a new feature introduced in C#3.0 : Func Func is a new type used in all concerning delegate declarations. In this post, we will show you the different states in using delagates declaration between C#1.1, 2.0 and 3.5. The following examples show if a data is included in a given interval. In C#1.0 the code [...]