Question Passing Object as parameter.

WSDeveloper

New member
Joined
Apr 17, 2018
Messages
2
Programming Experience
Beginner
Could anyone please explain and help out with code snippet? I am beginner and not very good with OOP concepts.
I have asked this question to other forums but no replies. but I hope will get answer and good explanation from C Sharpers. :)

I have below two classes which were get generated from WSDL file.
I have data something like that
Status,item
2,abc
2,xyz
2,mno


public partial class myObject {

private string statusField;

private string strIdField;

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
public string status {
get {
return this.statusField;
}
set {
this.statusField = value;
}
}

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
public string strId {
get {
return this.strIdField;
}
set {
this.strIdField = value;
}
}
}

and there is a method Updater accepting WSObjects as parameters and returning WSResponse.
How can I pass status and item one by one to the method and get return response?
 
Last edited:

Latest posts

Back
Top Bottom