随笔分类 -  C# in Dept

v3
摘要:OfType和Cast作为 Enumerable中的一个简单的扩展方法来使用。 Cast Cast把每个元素都转换为目标类型,遇到不是正确类型的任何元素的时候,就会出错。 var item = cmbData.Items.Cast<Source<string, string>>().FirstOrD 阅读全文
posted @ 2020-09-15 17:51 wesson2019 阅读(140) 评论(0) 推荐(0)
摘要:这些信息有助于跟踪、调试和创建诊断工具。 if the call site doesn't provide the argument, the compiler will use the current file, line number, or member name to fill in the 阅读全文
posted @ 2019-12-02 18:06 wesson2019 阅读(146) 评论(0) 推荐(0)
摘要:C# 多线程高并发的情况下,怎么让数据先到先执行? using System.Collections.Concurrent; using System.Threading; using System.Threading.Tasks; ConcurrentQueue<string> _queue = 阅读全文
posted @ 2019-11-20 10:13 wesson2019 阅读(593) 评论(0) 推荐(0)