M
Maziar Aflatoun
Hi everyone,
A web service method is declared by
[WebMethod]
public void MyMethod() {
}
However, this doesn't work with get/set property? How would one go about
defining a get/set property in a web service?
ex.
[WebMethod]
public string custFirstName
{
get
{
return FirstName;
}
}
Error: Attribute 'WebMethod' is not valid on this declaration type. It is
valid on 'method' declarations only.
Thank you
Maz.
A web service method is declared by
[WebMethod]
public void MyMethod() {
}
However, this doesn't work with get/set property? How would one go about
defining a get/set property in a web service?
ex.
[WebMethod]
public string custFirstName
{
get
{
return FirstName;
}
}
Error: Attribute 'WebMethod' is not valid on this declaration type. It is
valid on 'method' declarations only.
Thank you
Maz.