> On 3/25/07 11:45 AM, Theodore H. Smith at [EMAIL PROTECTED] wrote:
>
>> ElfDataDictionary doesn't impose this. You can just get value and if
>> it doesn't exist, nil is returned.
>
> That's fine if you never store nil, but what if you do, or what if
> you want
> to test for nil? How would you distinguish between whether nil was
> actually
> stored vs. the key doesn't exist?
>
> But I assume you have an alternate for testing whether a key exists?
You'd store a default value. ElfDataDictioanry uses the ElfData.Empty
object, which is basically the same as a "" string.
So Setting dict.HasKey("fred") = true, will set the value to
ElfData.Empty.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>