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
How are the activation URLs different in case of SAO and CAO in .NET remoting?
What are the consideration in deciding to use .NET Remoting or ASP.NET Web Services?
What are the difference between static assemblies and dynamic assemblies?
What do you mean by windows authentication?
Explain how to perform remoting?
Explain the difference between the registerwellknownservicetype(), registerwellknownclienttype(), registeractivatedservicetype() and registeractivatedclienttype() in .net?
What is the proxy of the server object in .net remoting?
Are you aware of containment and Aggregation ?
Garbage collector?s functionality on unmanaged code ?
Can you explain remoting?
What is the difference beween the registeractivatedservicetype() and registeractivatedclienttype()?
Explain when we use web service and when we use remoting?
Explain the differences between marshal by value and marshal by reference?
What is the Difference between CAO and SAO in Remoting.
What are different types of assemblies?