Example #1
0
        public static byte[] Serialize(MatchReplay replay)
        {
            var ms = new MemoryStream();

            Serialize(replay, ms);
            return(ms.ToArray());
        }
Example #2
0
        public static void Serialize(MatchReplay replay, Stream stream)
        {
            var dcs = new DataContractSerializer(typeof(MatchReplay));

            dcs.WriteObject(stream, replay);
        }
Example #3
0
 public Replay(Guid id, MatchReplay data)
 {
     this.Id   = id;
     this.Data = data;
 }