473,668 Members | 2,536 Online
Bytes | Software Development & Data Engineering Community
+ 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 13230
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 (ServicedCompon ents)
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.c om...
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 (ServicedCompon ents)
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.c om...
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.r illing.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.r illing.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.c om...
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.c om...
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
5768
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 another transaction I attempt to insert a new row into the table (which does not match the first transactions where clause), but it is blocked by the first transaction. The reading I have done on SQL Server suggests that I should be able to insert...
0
1537
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 methods. Is there a document, or can some one list those types that are not serializable and the syntax for converting them?
8
6299
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. Is there a document, or can some one list those types that are not serializable and the syntax for converting them? Thanks
5
12735
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 following code will not compile? I thought the "Serializable" attribute was located in the System.Runtime.Serialization assembly. I'm trying to stream this structure to/from a byte array. using System.Runtime.InteropServices; using...
0
1447
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? Also if I choose to use XMLSerialization do I use the attribute? Finally, can I save a file in an application built for Pocket PC in a binary format? Than you, Poe
2
4409
by: John | last post by:
Hi What is a Serializable class compared to a normal class? Thanks Regards
9
3819
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
8704
by: cpnet | last post by:
I have a DataTable defined in a strongly-typed DataSet: public class MyDataSet: DataSet... { ... public class MyDataTable: DataTable... { ...}
3
1815
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, which has some properties on it, but I want to make one of the Properties a generic type that I can assign one of multiple Serializable object. I've look at creating it using an XmlNode and an object but so far both appear to have issues. I've...
8
1820
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 a reference to my custom object's namespace instead of creating it's own copy of the object in it's own WS namespace. Either that, or some easy way to move all of the properties from the Custom Serializable Object into the WSDL generated object...
0
8462
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8381
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8799
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8586
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7401
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6209
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4380
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2792
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 we have to send another system
2
2026
muto222
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.