我在VB.net中序列化一个通用字典,我很惊讶它的单个项目大约是1.3kb。我做错了什么,还是有什么我应该做的?我有大量的字典,它们都是通过电线发送给我的。我用于序列化的代码是为什么.net通用字典如此之大
Dim dictionary As New Dictionary(Of Integer, Integer)
Dim stream As New MemoryStream
Dim bformatter As New BinaryFormatter()
dictionary.Add(1, 1)
bformatter.Serialize(stream, dictionary)
Dim len As Long = stream.Length