使用WCF从类库中公开对象 [英] Expose object from class library using WCF
本文介绍了使用WCF从类库中公开对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用一个公开一些对象的类库.这些对象具有几个属性,可以保存我的客户需要的数据.我想创建一个WCF服务,将对象返回给我的客户端,但是我无法更新类库以添加DataContract和DataMember属性.暴露这些物体的最简单方法是什么?
I'm using a class library that exposes a few objects. These objects have a couple of properties that hold data my clients need. I'd like to create a WCF service that returns the objects to my clients but I cannot update the class library in order to add the DataContract and DataMember attributes. What is the easiest way of exposing these objects?
推荐答案
查看全文