I have one class like below. I want to send one Messageformat like this for one webservice, so I need to add values to Attributecollection and Input.
public class Messageformat
{
public class Attributecollection
{
public string name { get; set; }
public int id { get; set; }
}
public class Input
{
public string soid { get; set; }
public string itemname { get; set; }
public int qty { get; set; }
}
public class output
{
public string soid { get; set; }
}
}
I want to add values to this class. I can call only one class at a time and add values to that class. Is there any way to call the class Messageformat and add values to sub classes through that object. I know its a nested class structure. I am not good in oop so can anyone share some idea about this?