Re: Hashtable property persistance
From: DRaiko (draiko_at_rhenus.de)
Date: 11/04/04
- Next message: Daren Hawes: "New Forum Needs a Lift! We Need Programmers!"
- Previous message: Uri Dor: "Re: Image resources - how can I rebuild them from files?"
- In reply to: Devin Rader: "Hashtable property persistance"
- Next in thread: Devin Rader: "Re: Hashtable property persistance"
- Reply: Devin Rader: "Re: Hashtable property persistance"
- Messages sorted by: [ date ] [ thread ]
Date: 4 Nov 2004 00:40:25 -0800
Hello Devin,
I have had the same problem and could not solve it directly.
A hashtable is a relative complicated runtime strurture. Only keys and
values must be persisted -- everything else (buckets, etc.) will be created
automatically.
There may be a better way, but i have simply defined another property
of collection type that is used only to serialize/deserialize values.
The value class in my case saves the key as its property also (not an
uncommon situation, i suppose) and thus the whole hashtable can be restored.
Maybe this is not the best solution, but it works.
HTH,
Dima.
"Devin Rader" <dmrader.pleasedontspamme@hahaha.sseinc.com> wrote in message news:<#vbYKBcwEHA.1296@TK2MSFTNGP10.phx.gbl>...
> Does anyone have an example of persisting a Hashtable property of a control?
>
> Do I need to implement my own CodeDomSerializer, or can I just create a
> TypeConvertor and use an InstanceDescriptor, or both?
>
> Not sure where to start.
>
> Thanks!
>
> Devin
- Next message: Daren Hawes: "New Forum Needs a Lift! We Need Programmers!"
- Previous message: Uri Dor: "Re: Image resources - how can I rebuild them from files?"
- In reply to: Devin Rader: "Hashtable property persistance"
- Next in thread: Devin Rader: "Re: Hashtable property persistance"
- Reply: Devin Rader: "Re: Hashtable property persistance"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|