Andy <(E-Mail Removed)> wrote:
> On May 4, 8:52 am, "KKS" <kks at synergi dot com> wrote:
> > Your class could inherit from MarshalByRefObject. This would also achive non
> > inlining and is the purpose of the class altogether.
>
> No, that's not the purpose of that class at all. The purpose of that
> class is to create a COM server object, which is anchored to the
> machine on which its running (that is, using the object from other
> computers will perform RPC calls to the server).
I think that definition is too narrow as well. COM doesn't need to be
involved anywhere. It just means (IMO) that when an instance needs to
be marshalled across an AppDomain boundary - for whatever reason - the
reference will be used, rather than creating a value copy of the
object.
> Actually I'm not sure that inheriting that class will prevent inlining
> at all.
I believe that it currently prevents inlining, but I haven't seen
anything to actually specify that, or say that it will always be the
case.
> The only good solution is the attribute mentioned above.
Agreed.
--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too