Click here to Skip to main content
15,891,431 members
Home / Discussions / C#
   

C#

 
AnswerRe: stupid question Pin
Luis Alonso Ramos19-Apr-06 17:09
Luis Alonso Ramos19-Apr-06 17:09 
Questiona Question regarding Image class and Graphics class Pin
Green Fuze19-Apr-06 13:28
Green Fuze19-Apr-06 13:28 
AnswerRe: a Question regarding Image class and Graphics class Pin
Robert Rohde19-Apr-06 22:13
Robert Rohde19-Apr-06 22:13 
Questionchange machine name Pin
shabonaa19-Apr-06 13:12
shabonaa19-Apr-06 13:12 
AnswerRe: change machine name Pin
Shajeel19-Apr-06 20:32
Shajeel19-Apr-06 20:32 
Question3 byte UTF-8 Encoding Pin
eggie519-Apr-06 11:46
eggie519-Apr-06 11:46 
AnswerRe: 3 byte UTF-8 Encoding Pin
Guffa19-Apr-06 12:28
Guffa19-Apr-06 12:28 
GeneralRe: 3 byte UTF-8 Encoding Pin
eggie521-Apr-06 13:17
eggie521-Apr-06 13:17 
QuestionHow to create array of label ? Pin
dataminers19-Apr-06 11:26
dataminers19-Apr-06 11:26 
AnswerRe: How to create array of label ? Pin
Office Lineman19-Apr-06 13:03
Office Lineman19-Apr-06 13:03 
Questione-mail through Outlook. HOW??? Pin
Vasya - dragon19-Apr-06 11:21
Vasya - dragon19-Apr-06 11:21 
QuestionRemoting: Reference to the Remote Object Instance? (Singleton) Pin
eclipse2k119-Apr-06 11:16
eclipse2k119-Apr-06 11:16 
AnswerRe: Remoting: Reference to the Remote Object Instance? (Singleton) Pin
LongRange.Shooter20-Apr-06 3:52
LongRange.Shooter20-Apr-06 3:52 
QuestionRe: Remoting: Reference to the Remote Object Instance? (Singleton) Pin
eclipse2k120-Apr-06 11:16
eclipse2k120-Apr-06 11:16 
AnswerRe: Remoting: Reference to the Remote Object Instance? (Singleton) Pin
Tim Paaschen20-Apr-06 20:27
Tim Paaschen20-Apr-06 20:27 
JokeRe: Remoting: Reference to the Remote Object Instance? (Singleton) Pin
eclipse2k121-Apr-06 9:59
eclipse2k121-Apr-06 9:59 
GeneralRe: Remoting: Reference to the Remote Object Instance? (Singleton) Pin
Tim Paaschen23-Apr-06 20:54
Tim Paaschen23-Apr-06 20:54 
QuestionNot logging in application log Pin
Dpriya19-Apr-06 11:11
Dpriya19-Apr-06 11:11 
AnswerRe: Not logging in application log Pin
Ricardo Casquete19-Apr-06 23:12
Ricardo Casquete19-Apr-06 23:12 
QuestionNotifyIcon - Changing the icon Pin
eggsovereasy19-Apr-06 11:03
eggsovereasy19-Apr-06 11:03 
AnswerRe: NotifyIcon - Changing the icon Pin
Josh Smith19-Apr-06 12:38
Josh Smith19-Apr-06 12:38 
QuestionSerialization of Parent with Child Objects Pin
sharkbait19-Apr-06 10:29
sharkbait19-Apr-06 10:29 
AnswerRe: Serialization of Parent with Child Objects Pin
Josh Smith19-Apr-06 10:38
Josh Smith19-Apr-06 10:38 
GeneralRe: Serialization of Parent with Child Objects Pin
sharkbait19-Apr-06 10:59
sharkbait19-Apr-06 10:59 
GeneralRe: Serialization of Parent with Child Objects Pin
Josh Smith19-Apr-06 13:04
Josh Smith19-Apr-06 13:04 
Without the actual error message it's hard to say what the problem is. But, here are some things to keep in mind about the XmlSerializer:

1) It does not serialize object graphs with circularites (A references B, and B directly or indirectly references A). It makes exceptions to this rule for a select few classes in the .NET framework, such as the DataSet, but that doesn't help the rest of us.

2) As 'theRealCondor' mentioned, it only serializes public get/set properties of an object. (It also will serialize public fields, but those should never exist!)

3) There are some attributes you can use to control how the serialization of sub-objects is performed (this might be relevant to your issue, somehow).

Here's a great tutorial on everything you would ever want to know about the XmlSerializer: http://www.topxml.com/xmlserializer/[^]

I hope that helps,
Josh

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.