473,471 Members | 1,874 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 13211
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: 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
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.