从WCF发送枚举 [英] Send an Enum from a WCF

查看:96
本文介绍了从WCF发送枚举的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,我有个问题要问.
我正在开发两个项目. WCF就是其中之一.第二个项目是在客户端运行的Windows应用程序.
我想做这样的事情;
我想在WCF上定义一个枚举常量,以将其发送到其他项目.
如何访问此枚举常量.
这样的事情有可能吗?
最好的问候.
谢谢.

Hi friends, I have a question for you.
I''m Developing two projects. WCF one of them. The second project is a windows application running on the client side.
I would like to do something like this;
I want define an enum constant on WCF to send it to other project.
How do I access the enum constant of this.
Does such a thing possible?
Best Regards.
Thank you.

推荐答案

在.NET框架级别使用Enum是有限制的.要解决,请参考​​枚举类型不枚举的CodeProject文章!解决.NET和语言限制 [ ^ ]
There is a limitation to use Enum at .NET framework level. To resolve, refer CodeProject article at Enumeration Types do not Enumerate! Working around .NET and Language Limitations[^]


请分享您的示例代码


这篇关于从WCF发送枚举的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆