Answers for "convert c# dictionary to javascript array"

C#
0

c# dictionary to json

return JsonConvert.SerializeObject( myDictionary );
Posted by: Guest on September-01-2021
0

c# dictionary values 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();
Posted by: Guest on October-23-2020

Code answers related to "convert c# dictionary to javascript array"

C# Answers by Framework

Browse Popular Code Answers by Language