Answers for "deserialize a string c#"

C#
0

how to deserialize string array in c#

string[] arr = JsonConvert.DeserializeObject<string[]>(download);
Posted by: Guest on August-08-2021
0

how to deserialize string array in c#

public class MyClass {
    public string id { get; set; }
    public string content { get; set; }
    public string ups { get; set; }
    public string downs { get; set; }
}

MyClass[] result = JsonConvert.DeserializeObject<MyClass[]>(download);
Posted by: Guest on August-08-2021

C# Answers by Framework

Browse Popular Code Answers by Language