ProxyWithTarget is composition based instead of inheritance based. Am
I right? If yes, then (proxy is ThirdParty) == false.

The advantage of inheritance based is to handle code like:

void Bar(ICommon common) {
  ThirdParty tp = common as ThirdParty;
  if (tp!=null) {
    // do something optimization with tp that we cannot intercept, that's fine.
  }
  // do somethings else with common that we can intercept.
}

Cheers,
Kenneth

On Fri, Jul 3, 2009 at 10:11 AM, Tuna Toksoz<[email protected]> wrote:
> ProxyWithTarget?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Rhino.Mocks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/RhinoMocks?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to