Reflection
11
REFLECTION http://melick-rajee.blogspot.com/
-
Upload
melick-baranasooriya -
Category
Documents
-
view
1.497 -
download
0
description
Basics of Reflection ..
Transcript of Reflection
REFLECTIONhttp://melick-rajee.blogspot.com/
Is a object
◦ Encapsulate assemblies
◦ Modules
◦ Types
Dynamically create instance
Reflection ?
Bind type to existing object in runtime
Get the type from an existing object
Invoke its methods
Access fields and properties
Access based on Attributes
Reflection ? ..
IF it is too much it is not good
Do not use reflection inside nested loops
Reflection is slows but ok to use
◦ Machines Performance◦ Memory Performance◦ Framework Improvement
Reflection Performance
Simple Reflection
Can Load Assemblies in Run Time
Simple Reflection ..
Dynamically Invoke Method
Path
Dynamically access Fields
Crate Custom Attribute
Access Custom Attributes
Thank You!