Why does WCF sometimes add “Field” to end of generated proxy types?

前端 未结 5 2167
夕颜
夕颜 2021-02-04 05:11

Basically, I have a server-side type \"Foo\" with members X and Y. Whenever I use Visual Studio\'s \"Add Server Reference\" then I see the WSDL and the generated proxy both appe

5条回答
  •  無奈伤痛
    2021-02-04 05:43

    I had the same problem but i was able to find solution.

    In the interface if you add [DataContractFormat] tag you will end up with "XFieldField" case. But if you replace it with [XmlSerializerFormat] in the interface it will not change the names in the proxy generated.

提交回复
热议问题