Hi,
We've got into a very tricky scenario in a project. We have used lot of reflection in our project.
We have ..
- Validation Framework driven by Attributes and Reflection
- Extension methods that transaforms a DataRow to an Entity Object using Attributes and Reflection and vice versa. The same thing we have done for DataTable and EntityCollections.
- IComparer interface implemented on generic EntityComparer class that uses reflection to compare two Entity OBjects.
Like above scenarios we have used Reflections at many other parts in our appication. After using the reflection we have noticed that the application is taking more processing cycles with reflection.
Upto what extent we should use Reflection in our project ? What are the areas of a project that are most adversely affected by reflection in terms of processing ? Where reflection will not make any performance impact ? Are there any guidelines on using Reflection ?