If you can change the code of the other type, the best is to reference it through an interface, instead of the actual type, and then implement this interface in the first type as well, (cf. Wrapper/Adapter design pattern).
If you can't, or prefer to avoid it, sorry I can't help. Maurice -----Message d'origine----- De : mark goldin [mailto:[email protected]] Envoyé : mercredi 30 octobre 2013 16:43 À : users Objet : Changing object's type without casting Is it possible to make an object of a some type exposing itself as of another type without casting? Extending Proxy is what I need to look into? Thanks
