Top "Binary-serialization" questions

The process of translating data structures or object state into a binary format

Convert a byte[] array into DataTable

I saved an object of type DataTable into SQL 2005 database in a field of type varbinary. I want to retrieve …

c# sql ado.net binary-serialization
What are the differences between the XmlSerializer and BinaryFormatter

I spent a good portion of time last week working on serialization. During that time I found many examples utilizing …

c# .net serialization xml-serialization binary-serialization
BinaryFormatter.Deserialize "unable to find assembly" after ILMerge

I have a C# solution with a referenced dll (also C# with the same .Net version). When I build the …

c# ilmerge binary-serialization
Does protobuf-net have built-in compression for serialization?

I was doing some comparison between BinaryFormatter and protobuf-net serializer and was quite pleased with what I found, but what …

serialization protobuf-net binary-serialization
When should I use XML Serialization vs. Binary Serialization in the .NET framework?

I'm confused - when should I be using XML Serialization and when should I be using Binary Serialization in the .…

c# .net serialization xml-serialization binary-serialization
How to analyse contents of binary serialization stream?

I'm using binary serialization (BinaryFormatter) as a temporary mechanism to store state information in a file for a relatively complex (…

c# .net serialization binary-serialization
Saving a Dictionary<int, object> in C# - Serialization?

I have a dictionary in c# private Dictionary<int, UserSessionInfo> userSessionLookupTable = new Dictionary<int, UserSessionInfo>(); Now …

c# dictionary serialization binary-serialization
How does BinaryFormatter.Deserialize create new objects?

When BinaryFormatter deserializes a stream into objects, it appears to create new objects without calling constructors. How is it doing …

c# constructor serialization binary-serialization
DeflateStream doesnt work on MemoryStream?

I have the following piece of code: MemoryStream resultStream = new MemoryStream(); string users = ""//Really long string goes here BinaryFormatter bFormatter = …

c# serialization memorystream deflate binary-serialization
Is it possible to do .NET binary serialization of an object when you don't have the source code of the class?

I am using BinaryFormatter to do binary serialization of some objects in C#. However, some of the objects contain classes …

c# .net serialization binary binary-serialization