I'm working with Json As i converted that json into classes and my class structure is like below
Class Demo
{
public A a { get; set; }
public B b { get; set; }
public C[] c { get; set; }
}
class A
{
public string x{ get; set; }
}
class B
{
public string y{ get; set; }
}
class C
{
public string z{ get; set; }
public D d{ get; set; }
}
class D
{
public string p{ get; set; }
}
to assign values to the parameter i'm using below code.
Demo demo = new Demo {
a = new A{
x = "test data",
},
b = new B{
y = "test data",
}
for the same class A and B i'm able to assign value but Class C is an array how can i assign parameter value to the class C