上一页 1 2 3 4 5 6 7 8 9 10 ··· 47 下一页
摘要: 安装nuget【Ude.NetStandard】 using (FileStream fs = File.OpenRead(ParseFilePath)) { Ude.CharsetDetector cdet = new Ude.CharsetDetector(); cdet.Feed(fs); c 阅读全文
posted @ 2025-01-15 17:40 Hey,Coder! 阅读(184) 评论(0) 推荐(0)
摘要: 创建两个项目,wpf、webapi 将webapi项目输出类型设置为类库 在wpf中引用webapi wpf中启动 Host.CreateDefaultBuilder(new string[]{ "--urls", "http://localhost:8888", }) .ConfigureWebH 阅读全文
posted @ 2025-01-02 18:40 Hey,Coder! 阅读(157) 评论(0) 推荐(0)
摘要: vim /etc/sudoers ## 添加管理员权限 testuser ALL=(ALL) PASSWD:ALL 配置命令无需输入sudo # /etc/sudoers中添加 testuser ALL=NOPASSWD:/usr/bin/nmcli 阅读全文
posted @ 2024-12-11 15:23 Hey,Coder! 阅读(55) 评论(0) 推荐(0)
摘要: webview2设置过滤器 //进行网址过滤 //webView.CoreWebView2.AddWebResourceRequestedFilter("http://test.com:8080/xx", CoreWebView2WebResourceContext.All); webView.Co 阅读全文
posted @ 2024-11-29 19:43 Hey,Coder! 阅读(539) 评论(0) 推荐(0)
摘要: 视频录制 安装nuget 【System.Runtime.InteropServices】 public class EnumDevices { /// <summary> /// 枚举视频设备 /// </summary> public static IEnumerable<string> Dev 阅读全文
posted @ 2024-11-26 13:27 Hey,Coder! 阅读(689) 评论(0) 推荐(0)
摘要: 下载微软工具 - Streams https://learn.microsoft.com/en-us/sysinternals/downloads/ streams -s -d D:/file 阅读全文
posted @ 2024-11-20 16:39 Hey,Coder! 阅读(294) 评论(0) 推荐(0)
摘要: <hc:NotifyIcon Text="xxxx程序" Visibility="Collapsed" Name="notifyIcon" Icon="/Assets/Ico/title.ico" Click="NotifyIcon_Click" MouseRightButtonDown="noti 阅读全文
posted @ 2024-11-15 17:50 Hey,Coder! 阅读(65) 评论(0) 推荐(0)
摘要: Roslyn 安装Microsoft.CodeAnalysis.CSharp.Scripting using Microsoft.CodeAnalysis.CSharp.Scripting; using Microsoft.CodeAnalysis.Scripting; string code = 阅读全文
posted @ 2024-11-15 13:11 Hey,Coder! 阅读(72) 评论(0) 推荐(0)
摘要: 屏蔽ssl验证即可 Browser.RequestHandler = new ExampleRequestHandler(); public class ExampleRequestHandler : RequestHandler { protected override bool OnCertif 阅读全文
posted @ 2024-11-14 22:43 Hey,Coder! 阅读(229) 评论(0) 推荐(0)
摘要: 注意参数是否存在null值 var json = JsonConvert.SerializeObject(dto); var dic = JsonConvert.DeserializeObject<Dictionary<string, object>>(json); foreach (var ite 阅读全文
posted @ 2024-11-14 10:59 Hey,Coder! 阅读(30) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 47 下一页