Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 639 Bytes

DeserializeCollection.md

File metadata and controls

16 lines (12 loc) · 639 Bytes

Deserialize a Collection

This sample deserializes JSON into a collection.

var json = "['Starcraft','Halo','Legend of Zelda']";

var videogames = JsonConvert.DeserializeObject<List<string>>(json);

Console.WriteLine(string.Join(", ", videogames.ToArray()));
// Starcraft, Halo, Legend of Zelda

snippet source | anchor