Join Ted Neward for an in-depth discussion in this video Point demo, part of CLR Reflection for Developers.
- [Instructor] So if we are going to demonstrate reflection…one of the things we are going to need is…we are going to need some code to do it again…so lets go ahead and create a new project…again we'll just do…straight up console application project.…We're going to call this reflection.…We are going to put a couple of assemblies in here.…Specifically the first one we are going to create…will be an assembly that will represent…a Cartesian x y point.…And I'm just going to cheat here for a second,…and I'm just going to paste in some code…that I have already written ahead of time.…
Sort of pulling a Marta Stewart here if you will.…The x y class is going to be called…simply Point and as you can see we are going to have…a constructor that take two integers,…two auto get set properties for x and y,…a function that will allow us to calculate…the distance between them.…Thank you Pythagoras for your theorem once again.…We have a static point here, that's intended to return…the origin point which in this case as you can see…
- 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.