-1

I noticed that the following code:

public Stringification { get { ":)"; } }

doesn't expose the property when creating an auto-generated client for WCF communication. However, if I explicitly add the set method as follows:

public Stringification { get { return SomeProperty + "!"; } set { } }

it works dandy. Is it a limitation of WCF? Is it documented anywhere? I couldn't find any info on that...

Konrad Viltersten
  • 36,151
  • 76
  • 250
  • 438

1 Answers1

1

This is a limitation of WCF. It needs the set for the deserialization hence the set should be implemented for the get to work.

ranieuwe
  • 2,268
  • 1
  • 24
  • 30