Answers for "string json object c#"

C#
6

json property C#

public class Videogame
{
    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("release_date")]
    public DateTime ReleaseDate { get; set; }
}
Posted by: Guest on November-13-2020
1

c# object to json string

Newtonsoft.Json.JsonConvert.SerializeObject(new {foo = "bar"})
Posted by: Guest on May-18-2020

C# Answers by Framework

Browse Popular Code Answers by Language