Join Ted Neward for an in-depth discussion in this video Type API demo, part of CLR Reflection for Developers.
- [Instructor] So, let's look at using type in action.…As a matter of fact, I'm going to change this code up…a little bit because up until now…it's been fairly straightforward,…fairly simple but I want to actually create this class…and we're going to call it mirror…instead of the older one program…and we'll actually put main over here…into the program class.…We'll keep that but we're going to create a class…called mirror and specifically mirror…is going to be kind of a yoldasim clone…from the standpoint that what we want to do with it…is we want specifically…to be able to create a mirror instance…which will give us some information…about this particular class…that we're interested in examining.…
So for example we'll start with a simple constructor…that will take a type object as a parameter…and as a matter of fact we'll go ahead…and make that a property on the mirror itself.…The idea is that the mirror will be able to look…at a given type and as per the name implication,…show a mirror of what it is that we want to look at.…
- Working with the IL Disassembler (Ildasm)
- Namespaces and types
- Type API
- Properties API
- MethodBase and MethodInfo API
- Constructors API
- Fields API
- Constructing objects
- Accessing properties and fields
- Invoking methods
Skill Level Intermediate
Deploying .NET Applications with Octopus Deploywith Floyd Hilton1h 27m Intermediate
2. IL Disassembler (Ildasm)
3. Reflection Namespace and Types
4. Type API
5. Properties API
6. MethodBase and MethodInfo API
7. Constructors API
Constructors API demo2m 52s
8. Fields API
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.