What are the differences between Marshal by value and
Marshal by reference?

Answer Posted / j's

Marshal-by-value objects are copied by the remoting system
and passed in their entirety to the caller's application
domain. Once copied to the caller's application domain (by
the marshaling process), all method calls and property
accesses are executed entirely within that domain. The
entire object exists in the caller's domain, so there is no
need to marshal accesses across domain boundaries. Using
marshal-by-value objects can increase performance and
reduce network traffic when used for small objects or
objects to which you will be making many accesses. However,
because the object exists entirely in the caller's
application domain, no state changes to the object are
communicated to the originating application domain, or from
the originator back to the caller. Marshal-by-value is not
a good choice for very large objects with many accesses. It
makes little sense to marshal an entire large object across
domain boundaries when all you need is access to a single
field, method, or property.

Is This Answer Correct ?    31 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the ways to configure remoting objects before client can use them?

604


Define the lease of the object?

590


Hello, I want to connect a system in LAN and i want to access that.When ever i am moving a mouse in my desktop the similar thing have to happend in the another system in which i have connected. I need coding for this in c# and .NET . any one please help me.It is very urgent to me Advance thanks. my email id:manojkumarchallagundla@gmail.com

2310


define client activated objects (cao)?

613


How can you configure a .net remoting object via xml file?

554






What is Remoting?

644


About Iunknown interface Queue ,its methods Query Interface Addref,Release and Explain each ?

2580


Name the distributed systems available apart from .net remoting?

563


What are the ways to renew lifetime leases of objects?

582


What are the types of remotable objects?

575


What is the difference between remoting and webservice?

526


What are the types of remoting?

547


Explain how can you automatically generate interface for the remotable object in .net with microsoft tools?

558


Explain marshalling and its types in .net remoting

522


How do you directly call a native function exported from a DLL?

6663