Forum C# Is PlayerIO contain analog for BinaryFormatter

Is PlayerIO contain analog for BinaryFormatter

Postby fair_wind_ » December 27th, 2017, 10:51 am

Hello! I have a problem with converting the list of keypair values to a byte array, but when I try to use BinaryFormatter class I got an error
has variable of the non-allowed type: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter

Is PlayerIO have an analog for this class or I should convert to any other type?
fair_wind_
 
Posts: 6
Joined: November 14th, 2017, 7:33 am

Re: Is PlayerIO contain analog for BinaryFormatter

Postby Henrik » January 1st, 2018, 8:41 pm

For what purpose do you want to serialize a dictionary? BigDB or Multiplayer Messages?
Henrik
.IO
 
Posts: 1822
Joined: January 4th, 2010, 1:53 pm

Re: Is PlayerIO contain analog for BinaryFormatter

Postby pasEnixan » March 26th, 2019, 12:57 pm

Henrik wrote:For what purpose do you want to serialize a dictionary? BigDB or Multiplayer Messages?

Multiplayer Messages for example.
In my case i am serialize object to byte[] on client side and trying deserialize it to a same object on server.
What is the best practic for send message data as serialize object?
Thanks.
pasEnixan
 
Posts: 1
Joined: March 26th, 2019, 10:21 am


Return to C#



cron