public byte[] Serialize() { using (var stream = new MemoryStream()) { Serializer.Serialize<GenericStats>(stream, this); return stream.ToArray(); } }