序列化列表< Func< T> [英] Serialize List<Func<T>>
本文介绍了序列化列表< Func< T>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个包含 List< Func< T>>
的类。该类可序列化,并将通过WCF进行传输。现在,我遇到了包含 List< Func< T>>
的问题。
I have a class which contains a List<Func<T>>
. The class is serializable and will be transferred over WCF. Now, I have problems with contained List<Func<T>>
. What can I do that this list will also be serializable?
推荐答案
您如何期望 Func< T>
要序列化?它是一个指向函数的指针-这样的事情无法序列化。
How would you expect a Func<T>
to be serialized? It's a pointer to a function - such a thing cannot be serialized.
这篇关于序列化列表< Func< T>的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文