Serialize Composed Func?
问题 This works fine: Func<string, string> func1 = s => s + "func"; ViewState["function"] = func1; However, this does not: Func<string, string> func1 = s => s + "func"; Func<string, string> func2 = s => func1(s); ViewState["function"] = func2; It throws a runtime serialization exception: Type 'MyProjectName._Default+<>c__DisplayClass3' in Assembly 'MyProjectName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable. Now, I can work around this this time, but I'd