RealProxy restricted on MarshalByRefObject

The current .Net 1.1 implementation ofRealProxy is restricted to types that inheritsMarshalByRefObject objects. I would like to know is there such a restriction on RealProxy? The Java equivalent Proxy class does not seem to have such limitation.
Are there some drawbacks in enabling the framework to proxy any object ?
Joannès
[934 byte] By [JoannesVermorel] at [2008-2-11]
# 1

One correction -- RealProxy supports interfaces as well.

There a number of reasons by RP is limited to MBRO and interfaces, that I won't really go into, but it is a model limitation that we are not likely to change.

Using RP with interfaces is very powerful -- Indigo even uses them.

douglasp at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Remoting and Runtime Serialization...

.NET Development

Site Classified