.NET Runtime Docs

Reflection – Runtime Internals

Reflection provides the ability to discover and interact with types, members, and metadata at runtime. It powers many high‑level features such as serialization, dependency injection, and dynamic proxies.

📖 Overview

At its core, reflection works through the System.Reflection namespace and the underlying CLR metadata tables. When you request a Type object, the runtime reads the assembly’s metadata streams and builds a runtime representation.

// Get a type at runtime
Type t = Type.GetType("System.Collections.Generic.List`1");

// List its public methods
foreach (var m in t.GetMethods())
    Console.WriteLine(m.Name);
                

🔎 Type Inspection

🔧 Member Access

⚡ Dynamic Invocation

🚀 Performance Considerations

Further Reading