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)
"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)