AvarianKnight is correct, functions and field stored delegates aren’t serialized in this manner.
As this is about delegates stored in fields; this may technically be supported with a custom MsgPack serializer, but doing so we’ll make it really easy for everyone to build bad performing applications, we’d be failing: “Make it easy to use it right, hard to use it wrong”.
With most C# resources (not limited to) it’s best and most performant to keep everything in 1 project, no slow inter-runtime calls as every such call comes with a performance hit. Then only open up exports for other resources where it’s really necessary.
Edit: I first thought this was about serializing functions.
1 Like