Join Ted Neward for an in-depth discussion in this video Fields API introduction, part of CLR Reflection for Developers.
- [Instructor] So the last thing we'll look at…in terms of the formal reflection types…will be fields.…And you know, you probably could predict…what I'm going to say next.…The field info represents the field on a particular type,…and again, like properties and methods,…field info is not tied to a particular object instance.…Again, this is representative of the type…and because fields have a type,…one of the things that the field info will have…as a property will be the type of the field,…and we have modifiers on the field info…to indicate how this field is looked at…by the runtime.…
The one thing that's unusual here…is there is a flag for in it only,…meaning can this field in fact be initialized…in the constructor.…This is necessary because there are going to be…certain kinds of fields,…particularly static fields…that might in fact be compile time constants,…in other words, it may be in fact a const field…as expressed in C#,…in which case, yeah you don't want to be able to modify it.…That's something that the runtime should be able to enforce.…
- 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.