Join Ted Neward for an in-depth discussion in this video Reflection types demo, part of CLR Reflection for Developers.
- So, let's start building a tiny little console application…that will use Reflection to tell us the members…that are on this point class.…Now again, this is a bit of a pedagogical exercise,…because obviously we see the type information…right here for point.…But you could easily imagine building such a utility…to duplicate the functionality of ILdasm,…and/or couple of other scenarios, such as,…for example, if you wanted to build your own…serialization framework, you're on object relational…mapper, et cetera, you would use these techniques.…I'm just keeping point inside the same assembly,…to make it easier to do the demo,…to be very blunt.…
To do Reflection, the one thing we will need…is we will need the system.reflection namespace.…So, we'll just bring that in using a using statement.…And then, just to give us a basic idea…of what we're working with,…let's go ahead and get a hold of the point type…just to be able to display what we get.…So, point type, to get a hold of a particular type…object, reflectively, we can use a couple…
- 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.