[stringtemplate-interest] Problem with C# dictionaries

Kunle Odutola Kunle_Odutola at hotmail.com
Tue Oct 31 15:35:40 PST 2006


> You provided the following exmaple:
>
> e.g. $aDictionary.keys:{k| $k$ maps to $aDictionary.(k)$ }$
>
> Suppose the dictionary contained a key called 'keys', then what happens?
> Does the string template library return the value assossiated with the
> 'keys' key or the array of keys?

You could just test it...  ;-)

Anyways, I'd expect the arrays of keys to take precedence.

You can always access the value associated with key 'keys' as
$aDictionary.("keys")$.

Kunle



More information about the stringtemplate-interest mailing list