Can you Pass Func Through a WCF Service?

前端 未结 2 536
春和景丽
春和景丽 2020-12-06 10:31

Func is a serializable class, but yet when I try to pass it as a parameter through a service. I\'m told it \"isn\'t a known type\". I\'ve tried the solutions here to no avai

2条回答
  •  囚心锁ツ
    2020-12-06 10:54

    No, basically. You can't pass an Expression either, since it talks to MemberInfo nodes. Your best bet is a string representation of the predicate.

提交回复
热议问题