Serializing anonymous delegates in C#

前端 未结 6 1435
我在风中等你
我在风中等你 2020-12-01 02:59

I am trying to determine what issues could be caused by using the following serialization surrogate to enable serialization of anonymous functions/delegate/lambdas.

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-01 03:19

    Did you see this post that I wrote as a followup to the CountingDemo: http://dotnet.agilekiwi.com/blog/2007/12/update-on-persistent-iterators.html ? Unfortunately, Microsoft have confirmed that they probably will change the compiler details (one day), in a way that is likely to cause problems. (e.g. f/when you update to the new compiler, you won't be able to deserialise the stuff you saved under the old (current) compiler.)

提交回复
热议问题