binary-serialization Questions
3
Solved
Given a class like this one:
[Serializable]
public class MyClass {
string name;
string address;
public MyClass(SerializationInfo info, StreamingContext context){
name = info.GetString("name")...
Loudermilk asked 26/8, 2009 at 8:33
2
Solved
I am having one protobuf message -
message Sample{
string field1 = 1;
string field2 = 2;
string field3 = 3;
}
These messages are stored in datastore in binary format.
So if I want to remove any...
Smothers asked 8/7, 2020 at 12:35
4
Solved
I have the following piece of code:
MemoryStream resultStream = new MemoryStream();
string users = ""//Really long string goes here
BinaryFormatter bFormatter = new BinaryFormatter();
using (Memor...
Demolition asked 30/8, 2013 at 19:24
2
Solved
I was doing some comparison between BinaryFormatter and protobuf-net serializer and was quite pleased with what I found, but what was strange is that protobuf-net managed to serialize the objects i...
Unifilar asked 24/8, 2011 at 11:22
2
Solved
When serializing and deserializing values between JavaScript and C# using SignalR with MessagePack I am seeing a bit of precision loss in C# on the receiving end.
As an example I am sending the va...
Meloniemelony asked 27/3, 2020 at 18:42
10
Solved
I have a C# solution with a referenced dll (also C# with the same .Net version). When I build the solution and run the resulting exe, without merging the exe and the referenced dll, everything work...
Claar asked 2/3, 2011 at 16:21
6
I am using BinaryFormatter to do binary serialization of some objects in C#. However, some of the objects contain classes that I access via a DLL and do not have the source code for, so I can't mar...
Unfavorable asked 31/10, 2012 at 19:24
5
Solved
I'm trying to read a binary serialized object, I don't have the object definition/source for it. I took a peak into the file and saw property names, so I manually recreated the object (let's call i...
Prithee asked 1/8, 2013 at 14:21
2
Solved
As we all know and mentioned in MSDN site:
The serialization architecture provided with the .NET Framework
correctly handles object graphs and circular references automatically.
The only requi...
Agglutinogen asked 24/1, 2016 at 12:53
2
Solved
We have a solution where we are storing a fairly large/complex C# object in our database as binary data. My concern is that when changes are made to this class, we run the risk that data saved to t...
Ana asked 14/5, 2015 at 14:54
4
Solved
I'm using binary serialization (BinaryFormatter) as a temporary mechanism to store state information in a file for a relatively complex (game) object structure; the files are coming out much larger...
Schizophrenia asked 16/6, 2010 at 9:51
2
Solved
I am trying to Serialize a class.
Class definition:
class StartPeerSessionRequest {
public:
StartPeerSessionRequest();
virtual ~StartPeerSessionRequest();
void composeRequestwithHardCodeValues...
Anemograph asked 24/10, 2014 at 20:57
1
Solved
Lets say I have the object line from class Line:
class Line
def initialize point1, point2
@p1 = point1
@p2 = point2
end
end
line = Line.new...
How can I binary serialize the line object? I ...
Selfopinionated asked 2/2, 2014 at 21:31
3
The context is as follows
I want to refactor code by moving it around to different projects
Some of this code comprises of serializable DTOs that are used to
send and receive data across multiple...
Futile asked 29/10, 2013 at 18:37
4
Solved
A week ago I got in a situation where I had to read a binary serialized object made by another application made by somebody else.
I only had the someSerializedData.bin file, so I tried to manually...
Competitive asked 14/8, 2013 at 17:34
1
Solved
I have an MDI application with a treeview control docked to the left and five classes containing the information of the tree nodes i.e Editors for that kind of node.
How should I serialize the ap...
Familist asked 28/3, 2013 at 6:41
3
Solved
Let's say we have 3 Classes:
class foo { // not a singleton
String s;
}
class bar {
foo f;
int i;
}
class baz {
foo sameF;
}
Now we create instances
foo onlyFoo = new foo("the only one");
b...
Levona asked 30/11, 2012 at 17:49
1
Solved
Does anyone know what are approximately the performance gains, in terms of time, when using binary serialization versus JSON versus xml and sending the data over the network, provided that th...
Megass asked 13/11, 2012 at 13:52
2
Solved
Take the simple HashTable:
$data = @{
First = 'Justin';
Last = 'Dearing';
StartDate = Get-Date '2002-03-23';
}
The key StartDate seems to contain a DateTime.
C:\Users\zippy\Documents> $da...
Berman asked 9/3, 2012 at 15:34
2
Solved
I have List<HtmlAgilityPack.HtmlNode> but protobuf-net gives me error that it doesn't have a contract. How can I specify a contract for it when I don't have the source? It actually said it co...
Hols asked 23/10, 2011 at 21:54
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
2
I am developing a master-slave style application. The master application will send state data to the slave(s) to process and display at some constant rate. The state data is wrapped up into a singl...
Busiek asked 12/3, 2011 at 18:50
3
Solved
I'm confused - when should I be using XML Serialization and when should I be using Binary Serialization in the .NET framework?
Smukler asked 20/1, 2011 at 4:31
3
When BinaryFormatter deserializes a stream into objects, it appears to create new objects without calling constructors.
How is it doing this? And why? Is there anything else in .NET that does this...
Ake asked 17/8, 2010 at 7:58
2
Solved
I have a client and a server application which communicate over .NET 2.0 Remoting using binary serialization.
A small change has been made to one of the data transfer object's interface and the im...
Gutbucket asked 20/8, 2010 at 0:38
1 Next >
© 2022 - 2024 — McMap. All rights reserved.