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