Remoting Objects
With COM, the default and practically only means of transporting an object was by reference. It was not easy to create an object that was passed by value. In fact, doing so became a frequently discussed topic among COM programmers. With .NET, a remoted object can be either by value or by reference. The objects can include complex types such as arrays, structs, or datasets. The limiting factor in remoting an object is usually in the SOAP formatter because not all data types that can be represented in the .NET languages can be accurately represented with SOAP. For example, with SOAP 1.1, it is difficult to represent two or more dimensioned arrays or arrays of arrays.
If the class author decides that the object should be marshaled ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access