Member variables are zeroed
I have a custom object, that I need to send to web service.
Like
[Serializable]
public class MyObject
{
private int age;
private double height;
public MyObject() {}
}
and those members have also public properties.
I have set the values to properties on client, but when I access them in web service they are all 0. What may cause this?