Пример #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="torrentStream"></param>
        /// <exception cref="System.ArgumentException">此文件为非法种子</exception>
        /// <returns></returns>
        public static TorrentInfo From(Stream torrentStream)
        {
            var info = new TorrentInfo();

            return(info.Load(torrentStream));
        }
Пример #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="torrentStream"></param>
 /// <exception cref="System.ArgumentException">此文件为非法种子</exception>
 /// <returns></returns>
 public static TorrentInfo From(Stream torrentStream)
 {
     var info = new TorrentInfo();
     return info.Load(torrentStream);
 }