I wish I could use D for everything
Steven Schveighoffer
schveiguy at yahoo.com
Wed Apr 29 20:34:35 PDT 2009
On Wed, 29 Apr 2009 23:01:17 -0400, BCS <none at anon.com> wrote:
> Hello Steven,
>
>> The sole purpose of this enum is so I can have something reasonable
>> when iterating through the values in a dictionary instead of:
>> foreach(KeyValuePair<KeyType, ValueType> kvp in myDictionary)
>
> IIRC this works
>
> foreach(ValueType v in myDictionary.Values)
Whaddya know, you are correct :)
http://msdn.microsoft.com/en-us/library/0yxt5h4s.aspx
Thanks, that makes life slightly easier, at least I don't have to have
some stupid wrapper enumerator.
-Steve
More information about the Digitalmars-d
mailing list