Re: Hashtable property persistance

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: DRaiko (draiko_at_rhenus.de)
Date: 11/04/04


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



Relevant Pages

  • Re: Hashtable property persistance
    ... A hashtable is a relative complicated runtime strurture. ... Only keys and ... > Does anyone have an example of persisting a Hashtable property of a control? ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Asymetric Encryption - What am I doing wrong?
    ... > myRSA.ToXmlString to get all the data in a string. ... >> just the keys that must be exported... ... >>> Try getting your system working by persisting your asymmetric keys to ...
    (microsoft.public.dotnet.security)
  • Encrypt strings at business tier
    ... I need a safe way to store, retrieve and use keys on the ... so that certain strings in Classes ... before persisting to fields in tables in ...
    (microsoft.public.dotnet.framework.aspnet.security)