Click here to Skip to main content
15,887,585 members
Home / Discussions / C#
   

C#

 
GeneralReturning Items and SubItems from ListView Pin
IrishSonic3-Feb-04 23:30
IrishSonic3-Feb-04 23:30 
GeneralRe: Returning Items and SubItems from ListView Pin
Mazdak3-Feb-04 23:37
Mazdak3-Feb-04 23:37 
GeneralRe: Returning Items and SubItems from ListView Pin
IrishSonic4-Feb-04 0:31
IrishSonic4-Feb-04 0:31 
GeneralRe: Returning Items and SubItems from ListView Pin
Mazdak4-Feb-04 1:25
Mazdak4-Feb-04 1:25 
GeneralRe: Thanks - you're a star!!! Pin
IrishSonic4-Feb-04 3:29
IrishSonic4-Feb-04 3:29 
GeneralSereilize a Array List Pin
Snowjim3-Feb-04 22:40
Snowjim3-Feb-04 22:40 
GeneralRe: Sereilize a Array List Pin
thomasa4-Feb-04 3:32
thomasa4-Feb-04 3:32 
GeneralRe: Sereilize a Array List Pin
Heath Stewart4-Feb-04 4:08
protectorHeath Stewart4-Feb-04 4:08 
The ArrayList class is already attributed with the SerializationAttribute, meaning that is is serializable. When you use the classes from the System.Runtime.Serialization namespace, any such attributed class (and this attribute is not inherited by derivative classes, so to speak) has its private and public fields (not properties) serialized if they are attributed with the SerializationAttribute.

So, all you need to do is attribute your class (if you haven't done so already) and serialize it. The ArrayList will be serialized, too.

Now, in the case of XML serialization (using the System.Xml.Serialization namespace), only public properties and fields are serialized. This can be controlled using the attributes from this namespace. This type of serialization is not as good as the runtime serialization, though, because the latter takes much more into account and can also serialize into about any form you like (SOAP and binary formatters are provided with the .NET Framework base class library).

For more information on serialization in .NET, see Serializing Objects[^] in the .NET Framework SDK for more information and lots of examples for both types of serialization.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Sereilize a Array List Pin
LongRange.Shooter5-Feb-04 2:34
LongRange.Shooter5-Feb-04 2:34 
QuestionHow to display frame or panel on top of DirectDraw video window in Fullscreen mode? Pin
mdundek3-Feb-04 22:34
mdundek3-Feb-04 22:34 
AnswerRe: How to display frame or panel on top of DirectDraw video window in Fullscreen mode? Pin
Heath Stewart4-Feb-04 4:03
protectorHeath Stewart4-Feb-04 4:03 
GeneralDeployment project: adding uninstall icon Pin
Radoslav Bielik3-Feb-04 21:51
Radoslav Bielik3-Feb-04 21:51 
GeneralRe: Deployment project: adding uninstall icon Pin
Mazdak3-Feb-04 23:31
Mazdak3-Feb-04 23:31 
GeneralRe: Deployment project: adding uninstall icon Pin
Radoslav Bielik3-Feb-04 23:43
Radoslav Bielik3-Feb-04 23:43 
GeneralRe: Deployment project: adding uninstall icon Pin
Heath Stewart4-Feb-04 3:55
protectorHeath Stewart4-Feb-04 3:55 
GeneralRe: Deployment project: adding uninstall icon Pin
Heath Stewart4-Feb-04 4:00
protectorHeath Stewart4-Feb-04 4:00 
GeneralRe: Deployment project: adding uninstall icon Pin
Mazdak4-Feb-04 5:27
Mazdak4-Feb-04 5:27 
GeneralRe: Deployment project: adding uninstall icon Pin
Heath Stewart4-Feb-04 5:29
protectorHeath Stewart4-Feb-04 5:29 
GeneralRe: Deployment project: adding uninstall icon Pin
Radoslav Bielik4-Feb-04 20:58
Radoslav Bielik4-Feb-04 20:58 
GeneralRe: Deployment project: adding uninstall icon Pin
Heath Stewart5-Feb-04 4:14
protectorHeath Stewart5-Feb-04 4:14 
GeneralProblem with arrays... Pin
Andres Coder3-Feb-04 21:46
Andres Coder3-Feb-04 21:46 
GeneralRe: Problem with arrays... Pin
Radoslav Bielik3-Feb-04 21:54
Radoslav Bielik3-Feb-04 21:54 
GeneralRe: Problem with arrays... Pin
Andres Coder4-Feb-04 3:29
Andres Coder4-Feb-04 3:29 
GeneralRe: Problem with arrays... Pin
Andres Coder4-Feb-04 3:29
Andres Coder4-Feb-04 3:29 
GeneralRe: Problem with arrays... Pin
Heath Stewart4-Feb-04 3:53
protectorHeath Stewart4-Feb-04 3:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.