C5集合库-WCF上的序列化问题
我正在尝试通过 WCF 从 C5 集合库 发送 TreeDictionary。 它可以顺利到达接收者(我必须为似乎是内部数据结构的内容添加许多 KnownType 属性)。 但是,现在我陷入了失败的境地,因为它无法为 C5.KeyValuePair'2[typea,typeb]
创建默认比较器。
这是因为 C5 类本质上无法跨越 WCF(我很幸运能够走到这一步)还是其他原因?
I am trying to send a TreeDictionary from the C5 collection library over WCF. It gets to the recipient OK (I had to add a lot of KnownType attributes for what seems to be internal data structures). However, now I am stuck at a point where it fails because it cannot create a default comparer for C5.KeyValuePair'2[typea,typeb]
.
Is this because the C5 classes inherently cannot go across WCF (and I am lucky to have got this far) or something else?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
C5 类确实不是为跨越序列化边界而设计的。 您有多种选择。
祝你好运!
C5 classes are indeed not designed to go across a serialization boundary. You have several options.
Good luck!