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 ...
Get .NET Common Language Runtime Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.