Click here to Skip to main content
15,908,776 members
Home / Discussions / C#
   

C#

 
GeneralAmazing error from VisualStudio.NET Pin
Inam4-Feb-04 0:12
Inam4-Feb-04 0:12 
GeneralRe: Amazing error from VisualStudio.NET Pin
LongRange.Shooter5-Feb-04 2:27
LongRange.Shooter5-Feb-04 2:27 
GeneralRe: Amazing error from VisualStudio.NET Pin
Inam5-Feb-04 18:58
Inam5-Feb-04 18:58 
GeneralRe: Amazing error from VisualStudio.NET Pin
LongRange.Shooter6-Feb-04 3:43
LongRange.Shooter6-Feb-04 3:43 
GeneralRe: Amazing error from VisualStudio.NET Pin
Inam6-Feb-04 8:26
Inam6-Feb-04 8:26 
GeneralRe: Amazing error from VisualStudio.NET Pin
LongRange.Shooter9-Feb-04 2:29
LongRange.Shooter9-Feb-04 2:29 
GeneralAdo.Net Pin
GetOn&GetGoing4-Feb-04 0:05
GetOn&GetGoing4-Feb-04 0:05 
GeneralRe: Ado.Net Pin
Rampas Tomas4-Feb-04 0:28
Rampas Tomas4-Feb-04 0:28 
GeneralRe: Ado.Net Pin
Rampas Tomas4-Feb-04 0:29
Rampas Tomas4-Feb-04 0:29 
GeneralForm Authenticaton Pin
GetOn&GetGoing4-Feb-04 0:01
GetOn&GetGoing4-Feb-04 0:01 
GeneralRe: Form Authenticaton Pin
Not Active4-Feb-04 3:07
mentorNot Active4-Feb-04 3:07 
GeneralRe: Form Authenticaton Pin
Heath Stewart4-Feb-04 4:14
protectorHeath Stewart4-Feb-04 4:14 
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 

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.