Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Disctionary to Array

// dict is Dictionary<string, Foo>

Foo[] foos = new Foo[dict.Count];
dict.Values.CopyTo(foos, 0);

// or in C# 3.0:
var foos = dict.Values.ToArray();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Disctionary #Array
ADD COMMENT
Topic
Name
8+6 =