01 2023 档案

C# List间的交集并集差集
摘要:一、简单类型List的交集并集差集 1、先定义两个简单类型的List List<int> listA = new List<int>() { 1, 2, 3, 4, 5, 6, 7, 8 }; List<int> listB = new List<int>() { 1, 2, 3, 4, 9 }; 阅读全文

posted @ 2023-01-11 14:05 糯米白白 阅读(7140) 评论(0) 推荐(2) 编辑

unable to access 'https://github.com/.../...git': Recv failure: Connection was reset
摘要:解决git下载报错:fatal: unable to access 'https://github.com/.../...git': Recv failure: Connection was reset 1、在git中执行git config --global --unset http.proxy和 阅读全文

posted @ 2023-01-10 14:26 糯米白白 阅读(11275) 评论(0) 推荐(1) 编辑

C# null和Any()检查的快捷方式
摘要:在C#6中 if (x.Items?.Any() == true) 也可以写自己的扩展方法: public static bool NotNullOrEmpty<T>(this IEnumerable<T> source) { return source != null && source.Any( 阅读全文

posted @ 2023-01-10 11:31 糯米白白 阅读(173) 评论(0) 推荐(0) 编辑

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示