May 2010
Intermediate to advanced
1272 pages
61h 18m
English
Reflection also enables executing dynamic code, meaning that you can pick up types defined within an assembly, creating instances and invoking types from Visual Basic code without having a reference to that assembly. For example, imagine you want to load the People.dll assembly and create and populate an instance of the Person class, as shown in Listing 47.3.
Listing 47.3 Creating and Running Dynamic Code


When you have the type instance, you invoke the GetProperty method to get a reference of the desired property. This ...
Read now
Unlock full access