Click here to Skip to main content
15,900,724 members
Home / Discussions / C#
   

C#

 
QuestionImplementing IPersistStream? Pin
solidstore14-May-03 8:11
solidstore14-May-03 8:11 
AnswerRe: Implementing IPersistStream? Pin
leppie14-May-03 9:26
leppie14-May-03 9:26 
GeneralRe: Implementing IPersistStream? Pin
solidstore14-May-03 10:24
solidstore14-May-03 10:24 
GeneralClipboard.SetDataObject - data doesn't show up... Pin
LJMorsillo14-May-03 7:03
LJMorsillo14-May-03 7:03 
GeneralRe: Clipboard.SetDataObject - data doesn't show up... Pin
LJMorsillo14-May-03 7:20
LJMorsillo14-May-03 7:20 
GeneralMaking button jump to anchor Pin
Anonymous14-May-03 6:13
Anonymous14-May-03 6:13 
Questionhow does serialization handle versions? Pin
dazinith14-May-03 4:59
dazinith14-May-03 4:59 
AnswerRe: how does serialization handle versions? Pin
James T. Johnson14-May-03 14:00
James T. Johnson14-May-03 14:00 
dazinith wrote:
how does C# handle this?

Very poorly IMHO.

If the structure/class has changed between versions then you will get an exception thrown when it tries to deserialize the object.

There is currently a problem if you serialized a Hashtable in version 1.0 of the framework and try to deserialize that Hashtable in version 1.1. The cause is that MS added a new member to the Hashtable in the new version.

I do not know what would happen if you implement ISerializable to do as you mentioned (storing a Version object and have your deserialization code from ISerializable use that Version object to read back the correct data). Perhaps this would make a good article Smile | :)

dazinith wrote:
still a newb.. cut me some slack

We all were at one time or another Wink | ;)

James

"It is self repeating, of unknown pattern"
Data - Star Trek: The Next Generation

Generalchild form to maximize in work area in parent Pin
zuhx14-May-03 4:44
zuhx14-May-03 4:44 
Questioncan we make label transparent? Pin
Itanium14-May-03 3:29
Itanium14-May-03 3:29 
AnswerRe: can we make label transparent? Pin
KingTermite15-May-03 3:36
KingTermite15-May-03 3:36 
GeneralRaising an event Pin
Andy H14-May-03 2:03
Andy H14-May-03 2:03 
GeneralRe: Raising an event Pin
Richard Deeming14-May-03 5:19
mveRichard Deeming14-May-03 5:19 
GeneralC# dll Pin
dhruvesh14-May-03 1:26
dhruvesh14-May-03 1:26 
GeneralAdding DataColumns becames slow Pin
A.Wegierski14-May-03 0:01
A.Wegierski14-May-03 0:01 
GeneralRe: Adding DataColumns becames slow Pin
A.Wegierski14-May-03 0:40
A.Wegierski14-May-03 0:40 
GeneralCombo Box Hell please help!!! Pin
Paul Griffin13-May-03 23:35
Paul Griffin13-May-03 23:35 
GeneralRegarding DllImport Pin
jtmtv1813-May-03 22:02
jtmtv1813-May-03 22:02 
GeneralRe: Regarding DllImport Pin
Jon Newman13-May-03 22:10
Jon Newman13-May-03 22:10 
GeneralQuestion about spider or web crawler Pin
benzite13-May-03 20:53
benzite13-May-03 20:53 
GeneralRe: Question about spider or web crawler Pin
Sarvesvara (BVKS) Dasa13-May-03 21:19
Sarvesvara (BVKS) Dasa13-May-03 21:19 
GeneralRe: Question about spider or web crawler Pin
benzite13-May-03 21:57
benzite13-May-03 21:57 
GeneralRe: Question about spider or web crawler Pin
leppie14-May-03 9:47
leppie14-May-03 9:47 
GeneralRe: Question about spider or web crawler Pin
benzite14-May-03 19:13
benzite14-May-03 19:13 
GeneralProblems with dll's in C# Pin
flyingv13-May-03 20:25
flyingv13-May-03 20:25 

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.