Exemple #1
0
 /// <summary>
 ///     Uses content of the message to regenerate list of packets
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="packetCreator"></param>
 /// <returns></returns>
 public IEnumerable <T> DeserializeList <T>(Func <T> packetCreator) where T : ISerializablePacket
 {
     return(MessageHelper.DeserializeList(_data, packetCreator));
 }
Exemple #2
0
 /// <summary>
 ///     Uses content of the message to regenerate list of packets
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="packetCreator"></param>
 /// <returns></returns>
 public IEnumerable <T> DeserializeList <T>() where T : ISerializablePacket, new()
 {
     return(MessageHelper.DeserializeList <T>(_data));
 }