上一页 1 2 3 4 5 6 ··· 47 下一页
摘要: public static List<dynamic> OrderByKey (this IList<dynamic> list, string propertyName, bool isDescending = false) { var propertyInfo = list[0].GetType 阅读全文
posted @ 2025-09-25 13:27 Hey,Coder! 阅读(17) 评论(0) 推荐(0)
摘要: //测试类 var type = typeof(TestClass); //给类对象添加、获取特性 TypeDescriptor.AddAttributes(type, indexAttr); //var attr = TypeDescriptor.GetAttributes(type)[typeo 阅读全文
posted @ 2025-09-22 17:50 Hey,Coder! 阅读(25) 评论(0) 推荐(0)
摘要: public static class FileSafeWrite { public static void WriteAllTextAtomically(string filePath, string content) { // 定义临时文件路径 string tempFilePath = fil 阅读全文
posted @ 2025-09-22 15:05 Hey,Coder! 阅读(23) 评论(0) 推荐(1)
摘要: using System.Collections.Concurrent; internal class Program { static void Main(string[] args) { ConcurrentDictionary<string, RedisConnection> redisCon 阅读全文
posted @ 2025-09-16 18:59 Hey,Coder! 阅读(13) 评论(0) 推荐(0)
摘要: 通过pg_typeof //基础示例 SELECT pg_typeof(id) FROM t_basic_config LIMIT 1; //多表join SELECT pg_typeof(a.id),pg_typeof(b.user_password) FROM t_basic_config a 阅读全文
posted @ 2025-09-10 21:14 Hey,Coder! 阅读(12) 评论(0) 推荐(0)
摘要: client = new RestClient(new RestClientOptions { RemoteCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => true }); 阅读全文
posted @ 2025-09-04 21:21 Hey,Coder! 阅读(19) 评论(0) 推荐(0)
摘要: webView.CoreWebView2.ServerCertificateErrorDetected += WebView_ServerCertificateErrorDetected; private void WebView_ServerCertificateErrorDetected(obj 阅读全文
posted @ 2025-09-04 21:20 Hey,Coder! 阅读(40) 评论(0) 推荐(0)
摘要: 备份脚本 @echo off REM 获取当前日期和时间,并格式化为 YYYYMMDD_HHMMSS set hour=%time:~0,2% REM 处理小时是个位数的情况(前面带空格的问题),替换空格为0 if "%hour:~0,1%"==" " set hour=0%hour:~1,1% s 阅读全文
posted @ 2025-08-28 09:35 Hey,Coder! 阅读(40) 评论(0) 推荐(0)
摘要: 功能 在程序运行前加载特定的dll 配置环境变量 DOTNET_STARTUP_HOOKS=/path/to/StartupHook1.dll:/path/to/StartupHook2.dll dll代码示例 internal class StartupHook { public static v 阅读全文
posted @ 2025-08-12 11:23 Hey,Coder! 阅读(15) 评论(0) 推荐(0)
摘要: 将代码编译都内存对象中,保存编译后的类型到文件或者数据库中直接加载运行 阅读全文
posted @ 2025-08-07 18:23 Hey,Coder! 阅读(24) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 47 下一页