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 ServiceMethod2(SubSubE param) { }
public void SendRequestToService2() { var subSub = new SubSubE(); (new MyServiceObject()).ServiceMethod2(Initialize(ref subSub)); }