1 / 5

Notes on Reflection

Notes on Reflection. Robert T. Tattersall New England Visual Basic Professional User Group July 1st, 2004. About Reflection. “Reflection provides objects that encapsulate assemblies, modules, and types.” MSDN “You can use reflection to dynamically create an instance of a type...” MSDN

bibiana
Télécharger la présentation

Notes on Reflection

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Notes on Reflection Robert T. Tattersall New England Visual Basic Professional User Group July 1st, 2004

  2. About Reflection • “Reflection provides objects that encapsulate assemblies, modules, and types.” MSDN • “You can use reflection to dynamically create an instance of a type...” MSDN • “You can then invoke the type's methods or access its fields and properties.” MSDN • “Reflection.Emit namespace contains classes that allow a compiler or tool to emit metadata and Microsoft intermediate language (MSIL)” MSDN

  3. About Reflection (cont.) • System.Reflection namespace contains most Reflection classes. • System.Type is Reflection class used to access type metadata.

  4. About Reflection (cont.) • Reflection is used by .Net (e.g. XML serialization) • Reflection used by tools like ILDasm (.Net Framework Intermediate Language Disassembler) • Use of Reflection governed by security policy.

  5. Learn more about Reflection Introducing Microsoft .Net 3rd Edition Microsoft Press Dave S. Platt Programming Microsoft Visual Basic .Net Microsoft Press Francesco Balena Applied Microsoft .Net Framework Programming Microsoft Press Jeffrey Richter

More Related