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 糯米白白 阅读(7396) 评论(0) 推荐(3)

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 糯米白白 阅读(11917) 评论(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 糯米白白 阅读(188) 评论(0) 推荐(0)

导航