Reflection ช่วยให้โปรแกรม ตรวจสอบและจัดการชนิดข้อมูล, method และ property ขณะ runtime — แม้แต่ตัวที่ไม่รู้จักตอน compile Attribute แนบ metadata เชิงประกาศ (declarative) เข้ากับโค้ดที่เครื่องมือและเฟรมเวิร์กอ่าน (มักผ่าน reflection) เพื่อขับเคลื่อนพฤติกรรม ทั้งสองร่วมกันขับเคลื่อน "เวทมนตร์" ของเฟรมเวิร์ก .NET เป็นส่วนใหญ่ (การ serialize, DI, ORM, การ validate)
reflection — การตรวจสอบและเรียกใช้ขณะ runtime
Type type = (User);
(PropertyInfo prop type.GetProperties())
Console.WriteLine();
(MethodInfo method type.GetMethods()) { }
instance = Activator.CreateInstance(type);
PropertyInfo p = type.GetProperty();
p.SetValue(instance, );
