ToString () in class Webservice
1 answer
When passing objects back and forth to the webservice, it simply passes the XML representations of the public properties of that object. Any methods, overridden or not, don't come with it.
I would recommend creating a StringRepresentation property that calls ToString ()
public string StringRepresentation
{
get { return this.ToString(); }
set { /* Do Nothing, but there has to be a set */ }
}
+3
a source to share