当前位置:首页 > 开发 > C# > 正文内容

C#解析Torrent获取磁力链

C#3年前 (2022-10-24)

NuGet添加 MonoTorrent

using MonoTorrent;
string file = @"D:\下载\5.torrent";
Torrent torrent = Torrent.Load(file);
Console.WriteLine("magnet:?xt=urn:btih:" + torrent.InfoHash.ToHex());
Console.ReadLine();
magnet:?xt=urn:btih:EA6380C88E8B58096B0100E6F0239800BF968848



转载请注明出处。

本文链接:http://pythonopen.com/?id=227

相关文章

C# 判断鼠标按键

private void button1_MouseDown(object&nb...

C# 可空参数

using System; using System.Runtime.Inte...

C# 跳出foreach循环

在 C# 中,如果你想在 foreach 循环内部提前跳出当前这一轮循环,继续执行下一轮循环,可以使...

C# Graphics图像抗锯齿

g.SmoothingMode = SmoothingMode.AntiAlia...

C# i++和++i的区别

核心区别操作顺序            ...