Re: Hashtable property persistance
From: Devin Rader (dmrader.pleasedontspamme_at_hahaha.sseinc.com)
Date: 11/04/04
- Next message: Ken: "How to know what characters are monospace"
- Previous message: Jay: "Re: custom label not changing appearance"
- In reply to: DRaiko: "Re: Hashtable property persistance"
- Next in thread: DRaiko: "Re: Hashtable property persistance"
- Reply: DRaiko: "Re: Hashtable property persistance"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 4 Nov 2004 09:42:22 -0600
Is there any way you can post an example of how you did this?
devin
"DRaiko" <draiko@rhenus.de> wrote in message
news:3d60d02c.0411040040.3a9582d5@posting.google.com...
> 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: Ken: "How to know what characters are monospace"
- Previous message: Jay: "Re: custom label not changing appearance"
- In reply to: DRaiko: "Re: Hashtable property persistance"
- Next in thread: DRaiko: "Re: Hashtable property persistance"
- Reply: DRaiko: "Re: Hashtable property persistance"
- Messages sorted by: [ date ] [ thread ]