binaryformatter Questions
4
Solved
I have a few large object graphs which I have serialised, and some of them take a few moments to deserialise.
At this stage, I'm quite happy with my little "Please Wait..." box which appears and t...
Fallon asked 20/3, 2011 at 23:14
1
Solved
Here is a structure I serialize in my project:
[Serializable]
class A : List<B> //root object being serialized
[Serializable]
class B
+ [A few serializable fields]
+ C customList
[Serial...
Civics asked 10/7, 2012 at 20:53
3
Solved
I am attempting to serialize an object graph in .NET with the following method:
public static byte[] Serialize(object data)
{
var binary = new BinaryFormatter();
using (var ms = new MemoryStream...
Neelyneeoma asked 12/6, 2012 at 19:55
6
Solved
I want to make a binary serialize of an object and the result to save it in a database.
Person person = new Person();
person.Name = "something";
MemoryStream memorystream = new MemoryStream();
Bi...
Slipsheet asked 17/11, 2009 at 13:52
3
I have a binary that I want to obfuscate and hand out to users. Let us assume I use an unobfuscated version of my binary to serialize data using the off-the-shelf .NET binary formatter. Could we th...
Dari asked 6/10, 2011 at 19:6
1
Using .NET 4/C#...
I need to deserialize old config files that contain the serialized representation of a type named, say, ns1.X . The serialization has been done using BinaryFormatter.
The probl...
Dees asked 12/10, 2011 at 13:59
5
Solved
I have to work an an old application that used binaryFormatter to serialize application data into filestream (say in a file named "data.oldformat")
without any optimizazion the main class has been ...
Plastometer asked 10/4, 2010 at 15:34
1
Solved
The existence of AsReference option in Protobuf-net and the word that BinaryFormatter is a "graph serializer" lead me to assume that BinaryFormatter does not maintain references and that it makes a...
Mazel asked 20/9, 2011 at 1:27
3
Solved
I use Serialization/DeSerialization Technique. BinaryFormatter class.
Each time when new assembly is created the BinaryFormatter can't Deserialize binary data even if the class structure is the sam...
Augusto asked 22/8, 2011 at 21:51
2
Solved
I'm looking for advice on serialization in a .net app. The app is a desktop/thick client app and the serialization represents the persisted document format. The requirements for the serializer is
...
Terefah asked 3/8, 2011 at 8:50
4
I've written a custom class MyClass and marked it with the <Serializable()> attribute. I have a set of binary files on my hard drive that I've serialized using BinaryFormatter that came from ...
Vanhorn asked 10/5, 2011 at 11:41
3
I read very often that the BinaryFormatter has better performance then XmlSerializer.
Out of curiosity, I wrote a test-app.
a wtf moment... why is Xml so much faster than Bin (especially the deser...
Tannic asked 22/8, 2010 at 21:24
2
Solved
When .NET's BinaryFormatter is used to serialize an object graph, is any type of compression applied?
I ask in the context of whether I should worry about the object graph having many repeated str...
Outwash asked 27/8, 2009 at 15:30
1
Solved
I'm attempting to move an object graph from a server process to a client. And it works. At least it works when the both the client and server are on my dev virtual machine. It also works when I run...
Pectize asked 10/4, 2011 at 5:2
6
Solved
I would like to have an array model objects to be serialized to a binary stream. The model class will mainly have string and integer properties.
I believe that I can mark the class as [Serializabl...
Earsplitting asked 18/3, 2011 at 15:31
2
Solved
Can not deserialize following object graph. That Exception occurs when deserialize method called on BinaryFormmater:
System.Runtime.Serialization.SerializationException :
The constructor to deser...
Zacarias asked 16/2, 2011 at 13:51
1
Solved
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 sh...
Adversative asked 20/1, 2011 at 0:36
5
Solved
I have a project which uses BinaryFormatter to serialize a collection of structs with string and bool? datatypes.
The serialization/deserialization works fine, however if I were to change the asse...
Felicitation asked 3/2, 2009 at 0:33
2
Solved
I have a C# class that is serialized to disk by the BinaryFormatter, such as this example:
// Version 3.0
[Serializable]
public class Person
{
public string FullName;
[OptionalField(VersionAdde...
Baccalaureate asked 23/8, 2010 at 7:37
5
Solved
I am testing BinaryFormatter to see how it will work for me and I have a simple question:
When using it with the string HELLO, and I convert the MemoryStream to an array, it gives me 29 dimensions...
Outdoors asked 1/6, 2010 at 20:44
1
Solved
I'd like to know what is the serialization format of the BinaryFormatter. I found this site which give some good informations, but it was obtained by reverse engineering and it is not complete.
Wh...
Prognosticate asked 11/1, 2010 at 18:54
3
A BinaryFormatter-serialized array of 128³ doubles, takes up 50 MB of space. Serializing an array of 128³ structs with two double fields takes up 150 MB and over 20 seconds to process.
Are there f...
Eastwards asked 4/11, 2009 at 19:2
1
Solved
When the following class is serialized with a BinaryFormatter, any objects subscribing to the Roar event will also be serialized, since references to those objects are held by the EventHandler dele...
Murat asked 23/7, 2009 at 18:34
© 2022 - 2024 — McMap. All rights reserved.