Click here to Skip to main content
16,011,534 members
Home / Discussions / C#
   

C#

 
AnswerRe: Stupid question of the day Pin
leppie10-Jan-06 18:42
leppie10-Jan-06 18:42 
GeneralRe: Stupid question of the day Pin
Jamie Nordmeyer11-Jan-06 4:07
Jamie Nordmeyer11-Jan-06 4:07 
QuestionXML Serialization Pointer Fix uping Pin
asdf98910-Jan-06 9:32
asdf98910-Jan-06 9:32 
AnswerRe: XML Serialization Pointer Fix uping Pin
Dave Kreskowiak10-Jan-06 15:41
mveDave Kreskowiak10-Jan-06 15:41 
AnswerRe: XML Serialization Pointer Fix uping Pin
Judah Gabriel Himango10-Jan-06 16:05
sponsorJudah Gabriel Himango10-Jan-06 16:05 
GeneralRe: XML Serialization Pointer Fix uping Pin
leppie10-Jan-06 18:55
leppie10-Jan-06 18:55 
GeneralRe: XML Serialization Pointer Fix uping Pin
Judah Gabriel Himango10-Jan-06 20:39
sponsorJudah Gabriel Himango10-Jan-06 20:39 
GeneralRe: XML Serialization Pointer Fix uping Pin
leppie10-Jan-06 21:04
leppie10-Jan-06 21:04 
There is alot of potential problems though.

If your app relies on instances serialized in its runtime then you have to do fixups when deserializtion (that is if you can 'reset' the app state). The big problem now is how to correctly identify the type 'value' and hence map it, as the deserialized object and the currentobject will be a memberwiseclone of each other, but still 2 objects. If you have a valuetype, then you wont have this case. So the only other way is mutable and unmutable reference classes. Typically you would just override equals and hashcode and this would work fine on a hashtable. But as soon as you have a mutable object, where the hashcode is dynamic it gets tricky.

A solution to this problem is to have a fixup hashtable mapping T to T. Then at deserialization you do fixups[myobj] = myobj, and allways use fixups[myobj] to retrieve the actual object. Its all a bit tricky, but it works well Smile | :)

xacc.ide-0.1.1.10 - now with AutoComplete(kinda)
QuestionWeb Page on Windows Form? Pin
cyrus_thevirus10-Jan-06 9:20
cyrus_thevirus10-Jan-06 9:20 
AnswerRe: Web Page on Windows Form? Pin
Martin2310-Jan-06 11:27
Martin2310-Jan-06 11:27 
Questionwindows Standby Pin
shabonaa10-Jan-06 9:19
shabonaa10-Jan-06 9:19 
AnswerRe: windows safe mode Pin
Dave Kreskowiak10-Jan-06 15:29
mveDave Kreskowiak10-Jan-06 15:29 
QuestionRe: windows safe mode Pin
shabonaa10-Jan-06 17:22
shabonaa10-Jan-06 17:22 
AnswerRe: windows safe mode Pin
Sebastian Schneider10-Jan-06 22:44
Sebastian Schneider10-Jan-06 22:44 
AnswerRe: windows Standby Pin
shabonaa11-Jan-06 2:05
shabonaa11-Jan-06 2:05 
Questiondoes anybody have queen mc_klaski code? Pin
m.rastgar10-Jan-06 9:12
m.rastgar10-Jan-06 9:12 
Questionhow to make forms same size Pin
zhujp9810-Jan-06 9:04
zhujp9810-Jan-06 9:04 
AnswerRe: how to make forms same size Pin
Curtis Schlak.10-Jan-06 9:19
Curtis Schlak.10-Jan-06 9:19 
AnswerRe: how to make forms same size Pin
shabonaa10-Jan-06 9:26
shabonaa10-Jan-06 9:26 
QuestionSerious fault in overloading operator== in C# Pin
Jesper196610-Jan-06 9:02
Jesper196610-Jan-06 9:02 
AnswerRe: Serious fault in overloading operator== in C# Pin
User 665810-Jan-06 9:10
User 665810-Jan-06 9:10 
GeneralRe: Serious fault in overloading operator== in C# Pin
Jesper196610-Jan-06 9:16
Jesper196610-Jan-06 9:16 
GeneralRe: Serious fault in overloading operator== in C# Pin
Curtis Schlak.10-Jan-06 9:18
Curtis Schlak.10-Jan-06 9:18 
AnswerRe: Serious fault in overloading operator== in C# Pin
Curtis Schlak.10-Jan-06 9:17
Curtis Schlak.10-Jan-06 9:17 
GeneralRe: Serious fault in overloading operator== in C# Pin
Jesper196610-Jan-06 9:29
Jesper196610-Jan-06 9:29 

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.