1 由于枚举类型本身就是可以序列化的,所以你不需要增加DataContractAttribute到枚举类型定义中,就可以直接将枚举类型应用到WCF的服务契约中。
一般
You can use simple enumerations when you do not need to customize the enumeration's data contract name and namespace and the enumeration member values.
2
1 由于枚举类型本身就是可以序列化的,所以你不需要增加DataContractAttribute到枚举类型定义中,就可以直接将枚举类型应用到WCF的服务契约中。
一般
You can use simple enumerations when you do not need to customize the enumeration's data contract name and namespace and the enumeration member values.
2