Reflection ngidini program ngliyeni lan ngopeni tipe, metode, lan properti ing runtime — malah sing durung dikenal sak compile time. Attributes nempel metadata deklaratif ing kode sing tools lan frameworks baca (asring lewat reflection) kanggo nggulangake perilaku. Dadi bebarengan-barengan padha nyarangi akeh-akehe "magic" framework .NET (serialization, DI, ORMs, validasi).
Reflection — ngliyeni lan nglela ing 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, );
