Join Ted Neward for an in-depth discussion in this video Constructors API introduction, part of CLR Reflection for Developers.
- [Instructor] Now one of the particular kinds of methods…that most objects will have which are definitely different…than your standard method are constructors.…And reflection actually treats constructors…slightly differently because, in many respects,…despite the fact that they are methods,…they have a very very particular name that is to say,…as far as the common language infrastructure is concerned,…that name will always be .CTOR.…We saw that earlier when we were looking at ILDASM.…We'll see it again when we start looking at these…ConstructorInfo objects which represent a constructor.…
The other thing is that constructors kind of sort of…don't really have a return type, or to be more specific,…the return type is implicitly the object being constructed.…If for whatever reason the constructor doesn't succeed,…it's supposed to throw an exception…and therefore there will never be a return…that would actually be passed back.…So ConstructorInfo in some respect is a slightly…simplified version of a MethodInfo.…
- 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.