It appears you have not yet registered with our community. To register please click here...


advantages of serialization

This is a discussion on advantages of serialization within the .Net Development forums. Topic: Hi all, Can Any One explain me with example what is the advantages of serialization? I will highly appreciate your ...


Reply
 
Postbit Seperator LinkBack Thread Tools Postbit Seperator Display Modes
Old 08-26-2008, 08:21 AM   #1 (permalink)
 
Status: Junior Member
Join Date: Aug 2008
Posts: 4
Trader Rating: (0)
smithcarvo is on a distinguished road
TD$: 45.00
Donate
Default advantages of serialization
Hi all,

Can Any One explain me with example what is the advantages of serialization?


I will highly appreciate your feed back.

Thanks in advance.
__________________
Phone: (212) 736-3333
smithcarvo is offline   Reply With Quote
Old 08-27-2008, 03:47 PM   #2 (permalink)
 
Status: Junior Member
Join Date: Aug 2008
Posts: 8
Trader Rating: (0)
jwright is on a distinguished road
TD$: 50.00
Donate
Default Re: advantages of serialization
Are you looking for a code example or a real world example?

Either are useful. Here's a good real word example.

I've created a small desktop app to manage a golfer's handicap. Since I do not want to use webservices to send data to my storage facility and I also don't have access to a database on the client's machine, I use XML.

XML (or Binary) serialization allows you to store and and retrieve data easily by "serializing" and/or "deserializing" an object (that's marked as [Serializable]). If using XML, you can specify properties as node elements or attribute elements.

Essentially it's allowing you to use XML as a text database. And you basically have full control over the XML structure. Sure, you could use XMLTextWriter, but why when you can use serialization!

Let me know if you want a code example or any more info. I've use serialization alot and imo, it rocks!
jwright is offline   Reply With Quote
Old 08-28-2008, 04:31 AM   #3 (permalink)
 
Urbanmyth's Avatar
 
Status: Forums Moderator
Join Date: Jun 2008
Location: Oakdale
Posts: 132
Trader Rating: (0)
Urbanmyth is on a distinguished road
TD$: 815.00
Donate
Default Re: advantages of serialization
Jwright gave a great example of it's usefulness. Thanks alot for your contribution!
Urbanmyth is offline   Reply With Quote
Old 08-28-2008, 02:42 PM   #4 (permalink)
 
Status: Junior Member
Join Date: Aug 2008
Posts: 8
Trader Rating: (0)
jwright is on a distinguished road
TD$: 50.00
Donate
Default Re: advantages of serialization
Thanks. Any time.
jwright is offline   Reply With Quote
Old 08-30-2008, 10:09 AM   #5 (permalink)
 
Status: Junior Member
Join Date: Aug 2008
Posts: 4
Trader Rating: (0)
smithcarvo is on a distinguished road
TD$: 45.00
Donate
Default Re: advantages of serialization
Thanks a lot Jwright !
__________________
Phone: (212) 736-3333
smithcarvo is offline   Reply With Quote
Table Bottom LeftTable BottomTable Bottom Right
Reply


Thread Tools
Display Modes




Home | Site Map | Contact | Archive | Top

 

Copyright © 2007 - 2010 iTalkWebs Network

Search Engine Optimization by vBSEO 3.1.0