From the course: CLR Reflection for Developers
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Type API introduction - Windows Tutorial
From the course: CLR Reflection for Developers
Type API introduction
- [Instructor] So let's talk a little bit about this concept called "type." That is to say, specifically, the .NET object of type System.Type. Fundamentally, when we talk about reflection, the key thing to keep in mind is that, an instance of System.Type is an object that represents a type of some other object. In other words, we're sort of bridging, traditionally, the compile time and runtime worlds. At runtime, we think of things as objects, and at compile time, we think of classes. Well, in the .NET Framework, we can have classes, we can have enums, we can have structures. We can have a lot of different things that are all, fundamentally, a type. Hence we call this class System.Type. The idea is that System.Type provides information to the metadata of the class. The fields, the methods, the properties, their respective types, and so on and so forth. So, when we start working with this, and this will hopefully become more clear as we start seeing some of the code as we work with…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.