Esempio n. 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));
        }
Esempio n. 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);
 }