-Code reformat
This commit is contained in:
+10
-10
@@ -5,18 +5,18 @@ using System.Text;
|
||||
|
||||
namespace Newtonsoft.Json.Tests.Documentation.Samples.Serializer
|
||||
{
|
||||
public class DeserializeCollection
|
||||
{
|
||||
public void Example()
|
||||
public class DeserializeCollection
|
||||
{
|
||||
#region Usage
|
||||
string json = @"['Starcraft','Halo','Legend of Zelda']";
|
||||
public void Example()
|
||||
{
|
||||
#region Usage
|
||||
string json = @"['Starcraft','Halo','Legend of Zelda']";
|
||||
|
||||
List<string> videogames = JsonConvert.DeserializeObject<List<string>>(json);
|
||||
List<string> videogames = JsonConvert.DeserializeObject<List<string>>(json);
|
||||
|
||||
Console.WriteLine(string.Join(", ", videogames));
|
||||
// Starcraft, Halo, Legend of Zelda
|
||||
#endregion
|
||||
Console.WriteLine(string.Join(", ", videogames));
|
||||
// Starcraft, Halo, Legend of Zelda
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user