Categories of Remotable Types

A type that is exposed through .NET remoting is called a remotable type. A remotable type can be either marshal by value, marshal by reference, or context bound. Let's explore how each of these remotable types behaves.

Marshal by Value

A marshal-by-value type is copied from the server app domain to the client app domain when it is first accessed from a client. After the object is copied to the client app domain, all further access on the object is direct, that is, it does not go through a proxy. Because marshal-by value-objects must be copied from one app domain to another through a channel, they must be serializable to a stream. A marshal-by-value object can be made serializable by implementing the ISerializable ...

Get .NET and COM Interoperability Handbook, The 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.