I'm having a really strange issue serializing to an MSMQ and back.
The object being serialized contains a string array; one of the strings in the array contains spaces and carriage returns ("\r\n
"). The object is constructed fine and seems to serialize without a problem, but when I deserialize it (in another project), the array now contains an item for every individual word and space.
i.e.:
the array { "first", "this is a test string" }
becomes { "first", "this", "", "is", "", "a", "", "test, "", "string" }
I have no idea what's going on... as far as the serialization, I'm using MessageQueue.Send()
and System.XML.Serialization
.
Any help?