Marshaling is used when an object is converted so that it can be sent across the network or across application domains. Unmarshaling creates an object from the marshaled data.
There are two ways to do marshaling :-
- Marshal-by-value (MBV) :- In this the object is serialized into the channel, and a copy of the object is created on the other side