Click here to Skip to main content
15,917,636 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to make it user input (urgent) Pin
Kodanda Pani28-Feb-05 22:20
Kodanda Pani28-Feb-05 22:20 
GeneralRe: how to make it user input (urgent) Pin
tyenchoo28-Feb-05 22:35
tyenchoo28-Feb-05 22:35 
GeneralRefreshing images, performance problem Pin
lszymik26-Feb-05 22:48
lszymik26-Feb-05 22:48 
GeneralRe: Refreshing images, performance problem Pin
Heath Stewart27-Feb-05 4:49
protectorHeath Stewart27-Feb-05 4:49 
GeneralRe: Refreshing images, performance problem Pin
lszymik28-Feb-05 5:30
lszymik28-Feb-05 5:30 
GeneralXmlSerializer bhaviour Pin
mav.northwind26-Feb-05 21:27
mav.northwind26-Feb-05 21:27 
GeneralRe: XmlSerializer bhaviour Pin
Heath Stewart27-Feb-05 4:43
protectorHeath Stewart27-Feb-05 4:43 
GeneralRe: XmlSerializer bhaviour Pin
mav.northwind27-Feb-05 22:12
mav.northwind27-Feb-05 22:12 
Thanks for your reply, Heath!

I had flagged the class as [Serializable], of course, but didn't write it in the sample code, sorry.

What you describe is more or less what I thought about serialization so far.

But this doesn't explain the behaviour I get (or perhaps I'm just too dense to see it):
Class without the Dummy property and an int assigned to Tag serializes OK.
Class without the Dummy property and an int[] assigned to Tag throws exception.
Class with the Dummy property and an int assigned to Tag serializes OK.
Class with the Dummy property and an int[] assigned to Tag serializes OK.

I'd assume that Tag wouldn't get serialized at all, because object isn't serializable by default.
But obviously XmlSerializer does serialize the Tag property.
And whether this serialization succeeds or fails is depending on other attributes/properties of the same class. That's what strikes me odd...

Still puzzled,

mav
GeneralChange TreeNode text at runtime Pin
oohungoo26-Feb-05 15:11
oohungoo26-Feb-05 15:11 
GeneralRe: Change TreeNode text at runtime Pin
Radgar26-Feb-05 16:45
Radgar26-Feb-05 16:45 
GeneralRe: Change TreeNode text at runtime Pin
Luis Alonso Ramos26-Feb-05 18:52
Luis Alonso Ramos26-Feb-05 18:52 
GeneralRe: Change TreeNode text at runtime Pin
Radgar27-Feb-05 6:39
Radgar27-Feb-05 6:39 
GeneralReference to undeclared parameter entity Pin
mantissaPuc26-Feb-05 13:07
mantissaPuc26-Feb-05 13:07 
GeneralRe: Reference to undeclared parameter entity Pin
Heath Stewart27-Feb-05 4:37
protectorHeath Stewart27-Feb-05 4:37 
GeneralApplication Variables Pin
DougW4826-Feb-05 12:55
DougW4826-Feb-05 12:55 
GeneralRe: Application Variables Pin
Colin Angus Mackay26-Feb-05 13:32
Colin Angus Mackay26-Feb-05 13:32 
GeneralRe: Application Variables Pin
S. Senthil Kumar26-Feb-05 13:45
S. Senthil Kumar26-Feb-05 13:45 
GeneralCreating invisible services Pin
Esmo200026-Feb-05 12:52
Esmo200026-Feb-05 12:52 
GeneralRe: Creating invisible services Pin
Colin Angus Mackay26-Feb-05 13:35
Colin Angus Mackay26-Feb-05 13:35 
GeneralRe: Creating invisible services Pin
Radgar26-Feb-05 16:53
Radgar26-Feb-05 16:53 
GeneralRe: Creating invisible services Pin
Colin Angus Mackay26-Feb-05 17:00
Colin Angus Mackay26-Feb-05 17:00 
GeneralRe: Creating invisible services Pin
Radgar26-Feb-05 17:26
Radgar26-Feb-05 17:26 
GeneralRe: Creating invisible services Pin
Mazdak27-Feb-05 4:50
Mazdak27-Feb-05 4:50 
GeneralRe: Creating invisible services Pin
Colin Angus Mackay27-Feb-05 7:04
Colin Angus Mackay27-Feb-05 7:04 
GeneraltextBox Pin
sardonicus26-Feb-05 12:03
sardonicus26-Feb-05 12:03 

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.