/// <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)); }
/// <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)); }