July 2003
Intermediate to advanced
736 pages
16h 35m
English
A common and practical application—binding properties to controls—uses Reflection behind the scenes. This works in Windows Forms and Web pages.
DataBinding.sln contains an example of user-defined type Customer and a place to store customers as well as a Contacts class that can contain an ArrayList of contacts. The ArrayList implements an interface called IList, which supports enumeration that allows us to bind controls directly to our objects. The sample application is shown in Figure 4.1.

The Customer ...
Read now
Unlock full access