【发布时间】:2012-09-16 05:38:57
【问题描述】:
我使用 protobuf-net 而不是 binaryformatter 运行我的客户端/服务器应用程序,我得到下一个异常:“没有为类型定义序列化程序:System.Collections.Queue”。 我不完全确定,可能是我做错了什么的原因...... 因为我已经询问过 Dictionary/List 并且支持这些类型(Can I serialize an object (containing members: Dictionary, List... etc) in Mono and deserialize it in MS.NET or vice versa by using protobuf-net?)。
我刚刚读到:http://code.google.com/p/protobuf-net/wiki/GettingStarted "支持: 任何实现 IEnumerable 并具有 Add(T) 方法的类型 " 并且队列 @987654323@ 没有 Add(T)...
问题: 但我想完全确定。 protobuf-net 是否支持 System.Collections.Queue?
【问题讨论】:
标签: c# .net protobuf-net