public MyMain() { //assign the values to each class in the MyMain contrsuctor subSubC = new SubSubC() { CustomerId = 2, UniqueName = "XXBB" }; subSubE = new SubSubE() { CustomerId = 3, UniqueName = "ZZCC" }; }
public void ServiceMethod1(SubSubC param) { }
public void SendRequestToService1() { var subSub = new SubSubC(); (new MyServiceObject()).ServiceMethod1(Initialize(ref subSub)); }