New Message on dotNET User Group Hyd

Serialization

Reply
  Recommend Message 2 in Discussion
From: sistlavenkat

The Common Language Runtime (CLR) understands very well how objects are laid out in memory. When an object is serialized, the name of the class, the assembly, and all the data members of the class instance are written to storage. When the serialized class is deserialized, the class is recreated and the values of all the data members are automatically restored.

Having said, let me add one point here that, Objects are only valid in the application domain where they are created. If you want to pass objects across two application domains, then you have to do a MarshalByRefObject or Serializable, latter refering to passing the Object references and not object value itself.

Since serialization is a stream of data, and without a deserializer, it would not solve purpose. And when you serialize it, CLR writes stream of data using reflection, and the stream is recognizabile only again by proper deserializer, which will have underlying method calls/object references.

HTH,
venkat.Murthy

View other groups in this category.

Click Here
Also on MSN:
Start Chatting | Listen to Music | House & Home | Try Online Dating | Daily Horoscopes

To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.

Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.

If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.

Reply via email to