2

Does Castle project DynamicProxy heavily use Reflection ... like constantly?

Or does it do up front reflection cache the data?

tshepang
  • 12,111
  • 21
  • 91
  • 136
arkina
  • 991
  • 2
  • 11
  • 17

1 Answers1

6

It doesn't use Reflection at all as soon as the instance of the proxy class is instantiated.
It just creates a derived class at runtime. To create that class, it might need to use reflection, but once the class is created, it is just like any other class.

Daniel Hilgarth
  • 171,043
  • 40
  • 335
  • 443