Serialized List <Func <T>>

I have a class that contains List<Func<T>> . The class is serializable and will be passed through WCF. Now I have problems with the contents of List<Func<T>> . What can I do to make this list also serializable?

+4
source share
1 answer

How would you expect Func<T> serialization? This is a pointer to a function - such a thing cannot be serialized.

+16
source

Source: https://habr.com/ru/post/1440617/


All Articles