[英]Can you Pass Func<T,bool> Through a WCF Service?
No, basically. 不,基本上。 You can't pass an
Expression
either, since it talks to MemberInfo
nodes. 您也无法传递
Expression
,因为它与MemberInfo
节点进行通信。 Your best bet is a string representation of the predicate. 你最好的选择是谓词的字符串表示。
There's work happening to enable it. 正在开展工作以实现它。 Check out the Expression Tree Serialization project on the MSDN Code Gallery.
查看MSDN代码库中的表达式树序列化项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.