using System.Collections.Generic;
public static void Main()
Console.WriteLine("Hello World");
List<solutioncategory> testlist=new List <solutioncategory>();
solutioncategory t=new solutioncategory();
t.Solutioncategory="solution " + i.ToString();
t.solutionservices=new List<Solutionservices>();
Solutionservices ss =new Solutionservices();
ss.Solutioncategory=t.Solutioncategory;
ss.services=new List <Serviceslist>();
Serviceslist SL=new Serviceslist();
SL.Value="sub category " + s.ToString();
SL.ViewValue="sub Display ";
t.solutionservices.Add(ss);
Console.WriteLine(JsonConvert.SerializeObject(testlist));
public class solutioncategory
public string Solutioncategory {get; set;}
public List<Solutionservices> solutionservices {get ;set;}
public class Solutionservices
public string Solutioncategory {get; set;}
public List<Serviceslist> services {get;set;}
public class Serviceslist
public string Value {get; set;}
public string ViewValue{get;set;}