![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C# .net
随笔
努力活成一束光
这个作者很懒,什么都没留下…
展开
-
C#保存文件时重名自动生成新文件的方法
将一个文档保存为 a.txt 时,发现此文件已经存在,则自动保存为 a(1).txt,如果不存在,仍为a.txt /// /// Generates a new path for duplicate filenames. /// /// The path. /// private string GetNewPathForDupes(string path) { string director...转载 2019-09-27 09:52:43 · 1222 阅读 · 0 评论 -
C# Lambda表达式 两个list取交集 做筛选
public IList<Markers> getEngineerByCenterPoint(float latitude, float longitude) { MapAddress mapAddress = new MapAddress(latitude, longitude); List<Markers> markers...转载 2019-04-30 18:07:21 · 4734 阅读 · 0 评论