0

I am new to castle dynamic proxy, and a bit curious..

When creating proxy of my object I save all the original values of its property on the interceptor (class scope) using dictionary and return the new value. Now I am wondering, when will this data get collected by GC?? Can i control it or does it depend on the interceptor life cycle?

Regards Kin

Daniel Williams
  • 8,912
  • 15
  • 68
  • 107
ktutnik
  • 6,882
  • 1
  • 29
  • 34

1 Answers1

0

Interceptor is just an object that the proxy holds reference to. So it will live at least as long as the proxy.

Krzysztof Kozmic
  • 27,267
  • 12
  • 73
  • 115
  • thanks for the explanation. anyway thanks for making a great tutorial about dynamic proxy.. help me a lot! – ktutnik Jun 18 '10 at 11:06