Join Ted Neward for an in-depth discussion in this video MethodBase and MethodInfo API introduction, part of CLR Reflection for Developers.
- [Instructor] So from properties,…one of the most natural things you want to look at next…on a given class would be the methods that are exposed…by that particular type.…Again, MethodInfo represents a method…on a particular type, and again,…Methodinfo is not tied to a particular object instance.…As you would well imagine, if we're going to have something…that describes the method, this basically is going…to contain the type of each of the method's parameters…if there are any, as well as the return type…if there is any.…Again, properties on the MethodInfo will describe…the modifiers on that particular method.…
So again, was this declared static?…Was it declared public/private?…Was it declared abstract?…Is it declared virtual, et cetera, et cetera.…The return type itself will be a property…on the MethodInfo, but the parameter types…for each of the parameters for the method,…that is going to be a method call,…so we'll need to call GetParameters.…We want to look at the method's parameters types.…Say that five times fast.…
- 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.