A Simple Usage of Reflection
In my opinion, as a Windows developer, .NET is a huge evolution in the Windows software development scenario. It simplifies development, maintance, versioning, and bug finding among others nightmares that I'm used to facing as a VC++ programmer. But for me one of the most useful features of .NET is called Reflection.
Advanced Data Mapping in .NET
Data mapping is an essential part of most applications. For some typical database applications, a good part of the code is devoted to it. We usually perform data mapping manually by taking a value from a form field, or a database column etc, and assign it to a class property, one at a time. There is certainly nothing wrong with this manual approach. But as the functionality of the application changes, it's rather annoying to keep removing, adding and changing the data mapping code. In classic VB and ASP, we didnt really have any alternatives. However, in .NET, we can do something fancy with Reflection. Reflection gears us with the ability to examine and manipulate assemblies at run time. With such capability, we can carry out some automatic data mapping mechanism which will create objects and invoke methods dynamically.
Network Magazine Provides information Technology (IT) and network managers with strategic analysis, views of emerging technologies and product reports....
subscribe now