will dynamic actually be able to un-parse to such? that’s somewhat doubtful, actually.
it should be noted that the c# msgpack deserialization layer has NO NOTION OF TARGET TYPES, so you will only get the following types out:
primitives
string
byte
callback reference
IList<object> (actually List<object>)
IDictionary<string, object> (actually ExpandoObject)
if there’s a type conversion defined by the framework (IConvertible + Convert.ChangeType on original types, or Type.IsAssignableFrom), yo…
tl;dr you cannot send complex objects over events.
As @Federick said, you will need to use JSON if you wish to send complex objects to and from the server. Specifically, you’ll need to use Newtonsoft JSON Portable .NET 4.0 version 12.0.2.23222.
This is the copy I’ve always used.
Newtonsoft.Json.dll (442.4 KB)
Under ItemGroup in your .csproj file
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\Newtonsoft.Json.dll</HintPath>
</Reference>
Make sure to include it in your FXManifest.
files {
"Newtonsoft.Json.dll"
}