上一页 1 2 3 4 5 6 7 ··· 39 下一页
摘要: FileExtensionContentTypeProvider provider = new FileExtensionContentTypeProvider(); if (!provider.TryGetContentType(inDto.ObjectName, out string conte 阅读全文
posted @ 2024-07-08 13:53 Hey,Coder! 阅读(1) 评论(0) 推荐(0) 编辑
摘要: //列出所有凭据 cmdkey /list //添加凭据 cmdkey /generic:TERMSRV/192.168.2.1 /user:administrator /pass:xxxxx 阅读全文
posted @ 2024-06-22 10:41 Hey,Coder! 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 添加注册表 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor 添加字符串值 名称 autorun 值 chcp 65001 阅读全文
posted @ 2024-06-18 14:28 Hey,Coder! 阅读(4) 评论(0) 推荐(1) 编辑
摘要: 摘要 需要三个项目 c++代码 CPPProject c++包装器 CPPWrap c#包装器 CSharpWrap CPPWrap 创建c++动态链接库项目 配置属性 - 高级 - C+/CLI属性 ,依次设置公共语言运行时支持、.NET目标框架(设置为需要的.net环境对应的版本即可) 调整公共 阅读全文
posted @ 2024-06-17 21:54 Hey,Coder! 阅读(10) 评论(0) 推荐(0) 编辑
摘要: Interlocked可以为多个线程共享的变量提供原子操作 主要使用的读写方法 var runningState=Interlocked.Read(ref isRunning); Interlocked.Exchange(ref isRunning, 0); 可以配合lock实现业务 常用方法 Ad 阅读全文
posted @ 2024-06-12 11:58 Hey,Coder! 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 样式如下 <DataGrid Margin="0,6,0,0" HeadersVisibility="All" RowHeaderWidth="60" HorizontalScrollBarVisibility="Visible" AutoGenerateColumns="False" ItemsS 阅读全文
posted @ 2024-06-06 15:15 Hey,Coder! 阅读(9) 评论(0) 推荐(0) 编辑
摘要: App() { this.Startup += App_Startup; } private void App_Startup(object sender, StartupEventArgs e) { this.DispatcherUnhandledException += App_Dispatch 阅读全文
posted @ 2024-05-29 11:26 Hey,Coder! 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 检查是否开启了多路复用 检查是否开启了随机硬件地址 阅读全文
posted @ 2024-05-17 10:56 Hey,Coder! 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 通过自定义ConfigurationProvider可以实现从数据库获取参数, 同时读取配置仍然可以使用原本的IConfiguration 添加ConfigProvider 处理加载配置及定期刷新配置逻辑 /// <summary> /// 配置提供者 /// </summary> public c 阅读全文
posted @ 2024-05-11 13:18 Hey,Coder! 阅读(13) 评论(0) 推荐(0) 编辑
摘要: yum源 rm -f /etc/yum.repos.d wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo yum clean all yum mak 阅读全文
posted @ 2024-05-10 10:41 Hey,Coder! 阅读(69) 评论(1) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 ··· 39 下一页