views:

31

answers:

1

Hello all,

im new to castle dynamic proxy, and a bit curious..

when creating proxy of my object i save all the original value of its property on the interceptor (class scope) using dictionary and return the new value. now i wandering, when will this data get collected by GC?? can i control it or depends on the interceptor live cycle?

Regards Kin

A: 

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

Krzysztof Koźmic
thanks for the explanation.anyway thanks for making a great tutorial about dynamic proxy.. help me a lot!
ktutnik