binaryformatter
How do you send a serialized object over net?
i am trying to build a chat! now my goal is to receive input from the user, (which will be fed to a function in a class), save it and send the object to the user over the net.[详细]
2023-02-07 04:13 分类:问答Serialization Exception
what is Exception \"End of Stream encountered before parsing was completed.\" in the my code? BinaryFormatter t = new BinaryFormatter();[详细]
2023-02-05 18:41 分类:问答DataContractSerializer vs BinaryFormatter performance
I was going through articles to understand more about the datacontractserializer and binaryformatter serializers. Based on the reading done so far I was under the impression that binaryformatter shoul[详细]
2023-02-05 09:25 分类:问答Convert object to byte[]
I am trying to convert a retrieved registry value from object to byte[]. It is stored as REG_BINARY. I tr开发者_StackOverflowied using BinaryFormatter with MemoryStream. However, it adds overhead info[详细]
2023-02-04 11:12 分类:问答Exceptions while using BinaryFormatter to deserialize my serialized data
I am using the BinaryFormatter and a MemoryStream to serialize an object and then store it in a database as a binary blob.I then retrieve the data from the database and deserialize using binaryformatt[详细]
2023-01-31 16:52 分类:问答How do I deserialize a collection of references to a struct equivalent?
NOTE: This question changed a little as I learned more about the problem, so please read it in its entirety. I\'ve decided to leave it in its original form as it better describes how the problem was d[详细]
2023-01-31 06:57 分类:问答How to get BinaryFormatter to deserialize in a different application
I am using BinaryFormatter开发者_JAVA技巧 to serialize an array of class instances to a file. I can deserialize this fine within the same application. When I try the same deserialization in a differen[详细]
2023-01-25 13:54 分类:问答C# Sending size of object with serialized object over Async socket connection
I want to serialize an object and send it over the network. I have set it up using ISerializeable attribute on my class and BinaryFormatter to convert the object to bytes. I can send the object and de[详细]
2023-01-23 04:30 分类:问答Backwards compatibility in .NET with BinaryFormatter
We use BinaryFormatter in a C# game, to save user game progress, game levels, etc. We are running into the problem of backwards compatibility.[详细]
2023-01-14 09:07 分类:问答How to refactor a class that is serialized in .NET?
I have a C# class that is serialized to disk by the BinaryFormatter, such as this example: // Version 3.0[详细]
2023-01-12 11:59 分类:问答