Retrieving Type information using Reflection

Thursday, July 3rd, 2008

There are many situations when we need to retrieve part of the information of a type. It can be done via Reflection. This sample uses it to retrieve type’s attributes, fields, properties, methods and constructors. It also sets values to properties and fields and invoke the two custom methods of the class. Fisrst of all we [...]

Getting a Type by full name and creating an instance of it using Activator

Wednesday, July 2nd, 2008

Yesterday was my first work day in my new company. Today I needed to go through a part of components developed by the company. I created a WinForms application with several forms. I used each form to test different controls using different configuration. The application has one main form with buttons - one button per form. Each button’s Text property is set [...]