Open ThatRendle opened 7 years ago
Program constructor
public Program(string[] args)
{
Args = new Queue<string>(args);
SerializersToTest = new List<ISerializeDeserializeTester>
{
new SlimSerializer<BookShelf>(Data),
new FastJson<BookShelf>(Data),
new Jil<BookShelf>(Data),
new DataContractIndented<BookShelf>(Data),
new DataContractBinaryXml<BookShelf>(Data),
new DataContract<BookShelf>(Data),
new XmlSerializer<BookShelf>(Data),
new JsonNet<BookShelf>(Data),
new Protobuf_net<BookShelf>(Data),
new BinaryFormatter<BookShelf>(Data),
new MessagePack<BookShelf>(Data),
};
StartupSerializersToTest = new List<ISerializeDeserializeTester>
{
new SlimSerializer<BookShelf>(Data),
new SlimSerializer<BookShelf1>(Data1),
new SlimSerializer<BookShelf2>(Data2),
new SlimSerializer<LargeBookShelf>(DataLarge),
new BinaryFormatter<BookShelf>(Data),
new BinaryFormatter<BookShelf1>(Data1),
new BinaryFormatter<BookShelf2>(Data2),
new BinaryFormatter<LargeBookShelf>(DataLarge),
new FastJson<BookShelf>(Data),
new FastJson<BookShelf1>(Data1),
new FastJson<BookShelf2>(Data2),
new FastJson<LargeBookShelf>(DataLarge),
new Jil<BookShelf>(Data),
new Jil<BookShelf1>(Data1),
new Jil<BookShelf2>(Data2),
new Jil<LargeBookShelf>(DataLarge),
new DataContract<BookShelf>(Data),
new DataContract<BookShelf1>(Data1),
new DataContract<BookShelf2>(Data2),
new DataContract<LargeBookShelf>(DataLarge),
new XmlSerializer<BookShelf>(Data),
new XmlSerializer<BookShelf1>(Data1),
new XmlSerializer<BookShelf2>(Data2),
new XmlSerializer<LargeBookShelf>(DataLarge),
new JsonNet<BookShelf>(Data),
new JsonNet<BookShelf1>(Data1),
new JsonNet<BookShelf2>(Data2),
new JsonNet<LargeBookShelf>(DataLarge),
new Protobuf_net<BookShelf>(Data),
new Protobuf_net<BookShelf1>(Data1),
new Protobuf_net<BookShelf2>(Data2),
new Protobuf_net<LargeBookShelf>(DataLarge),
new MessagePack<BookShelf>(Data),
new MessagePack<BookShelf1>(Data1),
new MessagePack<BookShelf2>(Data2),
new MessagePack<LargeBookShelf>(DataLarge),
};
}
MessagePack.cs
BookShelf.cs
BookShelf1.cs
BookShelf2.cs
LargeBookShelf.cs