473,396 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Serializable

Am I right in assuming that serialization is only used when creating a
sequentially written file?
--
Patrick De Ridder
ng****@freeler.nl

Nov 15 '05 #1
6 13206
No. Serialization is used whenever you want to preserve the state of an
object and/or transmit it across some type of boundary.

Writing the information to a file is one way to preserve the information and
you can definitely serialize for this reason. You might also want to
serialize and object before sending it across the internet such as a
webservice. Or you have out-of-process COM component (ServicedComponents)
which require that all passed information be serialized. Or, you can send
the data to a remote machine to be reconstructed and executed.

A recently project that I developed was a component that serialized an
object and encrypted it which was then saved to the registry.
"Patrick De Ridder" <ng****@freeler.nl> wrote in message
news:8a********************************@4ax.com...
Am I right in assuming that serialization is only used when creating a
sequentially written file?
--
Patrick De Ridder
ng****@freeler.nl

Nov 15 '05 #2
No. Serialization is used whenever you want to preserve the state of an
object and/or transmit it across some type of boundary.

Writing the information to a file is one way to preserve the information and
you can definitely serialize for this reason. You might also want to
serialize and object before sending it across the internet such as a
webservice. Or you have out-of-process COM component (ServicedComponents)
which require that all passed information be serialized. Or, you can send
the data to a remote machine to be reconstructed and executed.

A recently project that I developed was a component that serialized an
object and encrypted it which was then saved to the registry.
"Patrick De Ridder" <ng****@freeler.nl> wrote in message
news:8a********************************@4ax.com...
Am I right in assuming that serialization is only used when creating a
sequentially written file?
--
Patrick De Ridder
ng****@freeler.nl

Nov 15 '05 #3
On Sat, 2 Aug 2003 03:27:56 -0700, "Peter Rilling"
<pe***@nospam.rilling.net> wrote:
No. Serialization is used whenever you want to preserve the state of an
object and/or transmit it across some type of boundary.


Thank you,
--
Patrick De Ridder
ng****@freeler.nl
Nov 15 '05 #4
On Sat, 2 Aug 2003 03:27:56 -0700, "Peter Rilling"
<pe***@nospam.rilling.net> wrote:
No. Serialization is used whenever you want to preserve the state of an
object and/or transmit it across some type of boundary.


Thank you,
--
Patrick De Ridder
ng****@freeler.nl
Nov 15 '05 #5
Patrick,
In addition to Peter's comments.

Serialization is also useful to clone objects (implement the IClonable
interface). To support Cut & Paste and Drag & Drop. Also you can use
Serialization to store objects to a relational database as well.

The following 3 part MSDN Magazine column on Serialization, provides a
number of uses for serialization and how to implement them.
http://msdn.microsoft.com/msdnmag/issues/02/04/net/
http://msdn.microsoft.com/msdnmag/issues/02/07/net/
http://msdn.microsoft.com/msdnmag/issues/02/09/net/

Hope this helps
Jay

"Patrick De Ridder" <ng****@freeler.nl> wrote in message
news:8a********************************@4ax.com...
Am I right in assuming that serialization is only used when creating a
sequentially written file?
--
Patrick De Ridder
ng****@freeler.nl

Nov 15 '05 #6
Patrick,
In addition to Peter's comments.

Serialization is also useful to clone objects (implement the IClonable
interface). To support Cut & Paste and Drag & Drop. Also you can use
Serialization to store objects to a relational database as well.

The following 3 part MSDN Magazine column on Serialization, provides a
number of uses for serialization and how to implement them.
http://msdn.microsoft.com/msdnmag/issues/02/04/net/
http://msdn.microsoft.com/msdnmag/issues/02/07/net/
http://msdn.microsoft.com/msdnmag/issues/02/09/net/

Hope this helps
Jay

"Patrick De Ridder" <ng****@freeler.nl> wrote in message
news:8a********************************@4ax.com...
Am I right in assuming that serialization is only used when creating a
sequentially written file?
--
Patrick De Ridder
ng****@freeler.nl

Nov 15 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Magnus Byne | last post by:
Hi, I have a problem using serializable transactions. In one transaction I select a single specific row from a table using a where clause (this causes it to acquire and hold a range lock). In...
0
by: xmail123 | last post by:
Hi, Hi, As was pointed out whatever you return from a WebMethod needs to be serializable to SOAP. An ArrayList is not serializable. I will be needing to return other data types from web...
8
by: xmail123 | last post by:
Hi, As was pointed out whatever you return from a WebMethod needs to be serializable to SOAP. An ArrayList is not serializable. I will be needing to return other data types from web methods. ...
5
by: Ben Terry | last post by:
I get the following compilation error: "The type or namespace name 'Serializable' could not be found (are you missing a using directive or an assembly reference?)" Can anyone tell me why the...
0
by: Poewood | last post by:
I am experimenting with saving files in binary format on the Pocket PC. When I use the attribute I get error in Compact Framework. Do i have to use the attribute to make a class serializable? ...
2
by: John | last post by:
Hi What is a Serializable class compared to a normal class? Thanks Regards
9
by: Developer | last post by:
Hi, How can one tell wsdl.exe/VS.NET web service proxy generatioon to to put on imported classes? For example, i fin your web service you use a class: class Data { }
1
by: cpnet | last post by:
I have a DataTable defined in a strongly-typed DataSet: public class MyDataSet: DataSet... { ... public class MyDataTable: DataTable... { ...}
3
by: Techno_Dex | last post by:
I'm wanting to create a Wrapper (or Extender depending on how you look at it) for a Serializable object that I then want to send over a webservice. Basically I want to create a Serializable Object,...
8
by: Techno_Dex | last post by:
Has anyone come up with a slick way to make Custom Serializable Objects to behave like DataSets when using WebServices? What I'm looking for is some way to force the WSDL generated code to create...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.