Examples from Chapter 13 (Reflection) of Programming C# 12.0 (O'Reilly).
- Example 1. Obtaining your own Assembly via a Type
- Example 2. Getting a nested type from an assembly
- Example 3. Dynamic construction
- Example 4. DeclaringType versus ReflectedType
- Example 5. Property accessor accessibility
- Example 6. How the CLR sees property accessibility
- Example 7. Getting a Type with typeof
- Example 8. Testing type compatibility
- Example 9. Invoking a method with InvokeMember
- Example 10. Type objects for generic types
- Example 11. Invoking a method