Unsafe Deserialize?

  • Thread starter Thread starter gregory_may
  • Start date Start date
G

gregory_may

I am shooting a data "stream" across the network. For whatever reason,
"UnsafeDeserialize" seems to be working the with the least amount of
problems. Is this "UnsafeDeserialize" going to cause me any problems later?



To Load the stream I am doing something like this:

Dim MyStream As New System.IO.MemoryStream

myserializer.Serialize(MyStream, MYBOOLVariable)

MyPayload = System.Text.Encoding.Default.GetString(MyStream.ToArray())



Then, I shoot it across the network & do this to Unload the stream:

MYBOOLVariable = CType(myserializer.UnsafeDeserialize(MyStream, null),
Boolean)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top