July 2003
Intermediate to advanced
736 pages
16h 35m
English
There will be many instances when you need to discover type information without writing weakly typed code. As shown in the last section, we can use the sender argument of an event handler to obtain properties from the object that raised an event. Type information is literally defined by a class named Type, defined in the System namespace.
To some extent, talking about Reflection and talking about the Type class go hand in hand. There are too many members in the Type class to list here, so I won't do it. I will tell you that all the information is available in the integrated help documentation, and you can discover just about anything you want to about a type by requesting an object's type information. The ...
Read now
Unlock full access