In my WCF Service I have a property declared as such:
public string PropertyName
{
get { return propertyName; }
set { propertyName = value; }
}
In my Client, when I add a service reference to the service, the imported .cs file has the same property, except it has lost its casing, as such:
[System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)]
public string propertyName
{
get
{
return this.propertyNameField;
}
set
{
this.propertyNameField = value;
}
}
(Notice the lowercase p on propertyName.)
Is there anything I can do so that consumers actually get the property with the intended Casing, ie: PropertyName, not propertyName?
Have you tried explicitly setting the Name in the DataMember? For example: