简体   繁体   中英

Enum deserialization for none .NET application consuming WCF service

So my question is pretty simple- I have a WCF contract with a certain DataContract the includes an enum. My goal is: 1. For .Net application to desrialize this DataMember as the suitable enum 2. for none .NET application to desrialize this DataMember as int

Is there any chance that this is the default behaviour? If not how do I accomplish this goal?

Thanks!

在.net中,您可以将int转换为枚举,反之亦然,而将int转换为其他变量的int

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM