Join Ted Neward for an in-depth discussion in this video Properties API introduction, part of CLR Reflection for Developers.
- [Tutor] Alright, so having gotten hold of a type…and examining some of the things that are going on there,…one of the simpler things…that we can work with are in fact fields,…but let's actually focus…on the public surface of a given type,…so let's talk about the field's equivalent,…that is to say properties.…Properties in Reflection are reflected…using the PropertyInfo object,…again, this is a member of System.Reflection…and this represents the concept…of the property on the given type,…PropertyInfo objects are not tied…to a particular object instance,…so as we work with the point object…in the code in just a second,…remember that the PropertyInfo is not tied…to any particular instance of point,…it's working off of the point type information,…the point metadata.…
Now the PropertyInfo, as we've seen from C Sharp…and Visual Basic and other languages,…that support properties,…a property always has a particular type associated with it,…so for example, if I have a firstName property…on a person type, firstName is of type string,…
- 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.