摘要: var tIds=new ListZ<long>(); _services.QueryAsync<Tree>("select * from tree where id in @ids", new { ids = tIds.ToArray()})) 阅读全文
posted @ 2023-12-27 14:55 一曲丶一执念 阅读(32) 评论(0) 推荐(0)
摘要: 创建一个A窗体,在B窗体使用CartesianChart,绑定数据,用A打开B,然后关闭B,循环这个过程,内存一直增,打开VS内存分析工具,可以看到CartesianChart的内存一直增加,没有释放。 尝试过很多方法,都没法释放。 在livechart的github上,也有人提出这个问题,作者没有 阅读全文
posted @ 2020-10-28 11:22 一曲丶一执念 阅读(1705) 评论(1) 推荐(0)
摘要: 1.最好先排序。 Enumerable.SequenceEqual(list1.OrderBy(t => t), list2.OrderBy(t => t));2.大概思路。 public static bool ScrambledEquals<T>(IEnumerable<T> list1, IE 阅读全文
posted @ 2020-08-21 09:22 一曲丶一执念 阅读(1086) 评论(0) 推荐(0)