2023年1月10日

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 糯米白白 阅读(10911) 评论(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 糯米白白 阅读(153) 评论(0) 推荐(0) 编辑

导航