Just as a small project, I\'ve been trying to make a wee thing that reads serialized lambdas (locally or from an FTP) and invokes their run functions as part of a test to ex
When you deserialize an object, the code doing the deserialization must know about the class of the serialized object. You cannot serialize an arbitrary lambda and deserialize it in another codebase.
More or less, the serializing and deserializing code must be in the same codebase, or at least must share a dependency on the code containing the original lambda.