Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are the differences between Marshal by value and
Marshal by reference?

Answer Posted / m.m.suhail

MBV:In this Server Creates a exact Copy of the Object and
sends it to the Client.Which can be used by the Client with
in its AppDomain with out making any further calls to the
server.
But this has a drawback,the copy sent to client will be
static and will not reflect the subsequent changes.So its
better not to use MBV when there are constant updates.

MBR:DotNet Framework creates a Proxy on the Client
AppDomain which the client uses for accessing the Objects
on the Server.We need to extend 'MarshalByRefObject' for
this.
But this to has a drawback,it increases the network traffic
as there can ba number of accesses to the Server.

So its depends upon our requirement.Small objects with
frequent accesses,we can go with MBR and huge Objects with
relatively low accesses we can go with MBV.

Is This Answer Correct ?    15 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the hierarchial description of remoting?

933


Explain how to directly call a native function exported from a dll?

991


What are the remotable objects in .net remoting?

958


How to decide which to use .net remoting or asp.net web services?

889


What is asynchronous programming?

969


Will clr handle unmanaged code or not?

979


What are the types of remoting?

998


Explain how does assembly versioning in .net prevent dll hell?

1068


What are the channels in .net remoting?

946


Types of compatabilities and explain them ?

2425


How do you directly call a native function exported from a DLL?

7576


Are you aware of containment and Aggregation ?

3189


Define remotable objects in .net remoting?

944


What are the security measures exist for .net remoting in system.runtime.remoting?

1017


What is unmanaged code?

1139