Results 1 to 6 of 6

Thread: Differentiation between serialization and deserialization

  1. #1
    Join Date
    Dec 2009
    Posts
    68

    Differentiation between serialization and deserialization

    Hello Guys,

    I am new to the Object Oriented Programming. I am totally confused between the serialization and deserialization. I am ware about the serialization, but I don't have any ides about the deserialization. Also I didn't understand the differentiation between serialization and deserialization. If you have sound knowledge regarding the serialization and deserialization then please let me know some difference between them. I would greatly appreciate you help.

  2. #2
    Join Date
    May 2008
    Posts
    2,389

    Re: Differentiation between serialization and deserialization

    Deserialization is the method of retrieving store data. While the 'serialization' is completely opposite to deserialization. Serialization used to hold the state of class object within a persistent storage. In make class as serializable class, for this you must meed to set SerializableAttribute attribute.Constructing an instance of the Serializer is an important step in the serialization, because after construction of serialization you can't change any of the settings.

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Differentiation between serialization and deserialization

    Hi friend,

    You want to how to use the concept of serialization, then please refer following example:
    Code:
    using System.Collections.Generic;
    using System.Text;
    using System;
    using System.Xml.Serialization;
    namespace DemoSerialization
    {
        [Serializable]
        public class Empl2
        {
            public int empCode1;
            public string empName1;
            [XmlAttribute(empName1)]
            public string EmpName1
            {
                get
                {
                    return empName1;
                }
    
                set
                {
                    empName1 = value;
                }
            }
        }
    }

  4. #4
    Join Date
    Jan 2008
    Posts
    1,521

    Re: Differentiation between serialization and deserialization

    Hi friend,

    The basic use of serialization is to facilitate the transportation of the class object using network. It is also used in the cloning of the abject.A serializer created for a certain root type cannot be used to serialize or deserialize another type, unless the type is derived from the root type.The DataContractSerializer has many constructor overloads, but, at a minimum, a root type must be supplied using the type parameter.

  5. #5
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Differentiation between serialization and deserialization

    Public and Private members of the class are often serialized by defaultly. De-serialization is the concept for to restore value of the class object. The SerializationAttribute is used for to achieve the binary serialization. There are following some typed of the serialization:
    * SOAP Serialization
    * Binary Serialization
    * XML Serialization

  6. #6
    Join Date
    May 2008
    Posts
    2,012

    Re: Differentiation between serialization and deserialization

    The Serialization is a process to encode the state information. The serialization also referred as marshalling. As with many choices algorithmic plus the serialization mechanism is specialized for a specific data type, the greater the performance.The method of serialization begins to mutate objects, which disrupts the optimizations type. The deserialization is also has number of problems such as the resuscitation of non mutable object.

Similar Threads

  1. Serialization in Vb.net
    By samualres in forum Software Development
    Replies: 5
    Last Post: 03-03-2010, 11:23 AM
  2. Advantages of serialization
    By ScarFace 01 in forum Software Development
    Replies: 5
    Last Post: 06-02-2010, 11:51 AM
  3. C sharp Serialization
    By Truster in forum Software Development
    Replies: 5
    Last Post: 14-01-2010, 08:40 AM
  4. What does serialization mean in java?
    By Honorata in forum Software Development
    Replies: 3
    Last Post: 24-11-2009, 08:35 AM
  5. Some questions regarding serialization
    By MABON in forum Software Development
    Replies: 3
    Last Post: 13-11-2009, 04:58 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,490,619.00076 seconds with 16 queries