Do you use enum types in your WCF web services?

前端 未结 9 2003
臣服心动
臣服心动 2020-11-27 06:06

I\'ve heard some people saying that enums are evil and shouldn\'t be used in web services because of the mismatches that could occur between the server and the client if som

9条回答
  •  清酒与你
    2020-11-27 06:12

    I've used enums in my WCF based services without any problems. The possible issues you mention are definitely things to consider, although if you make sure you apply enums in fairly static situations you probably won't have much trouble.

提交回复
热议问题