上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 56 下一页
摘要: var strs = new string[] { "1", "3" }; var l1 = strs.ToLookup(a => "a"); //Key=a elements=1,3 var l2 = strs.ToLookup(a => "a" + a); //Key=a1 element... 阅读全文
posted @ 2019-01-22 22:02 一只桔子2233 阅读(107) 评论(0) 推荐(0)
摘要: 若页面需默认用极速核,增加标签:<meta name="renderer" content="webkit"> https://blog.csdn.net/adc_god/article/details/51531263 document.location.href = obj.result; 时间 阅读全文
posted @ 2019-01-19 22:20 一只桔子2233 阅读(247) 评论(0) 推荐(0)
摘要: C# Swagger 生成接口文档 阅读全文
posted @ 2019-01-19 10:01 一只桔子2233 阅读(95) 评论(0) 推荐(0)
摘要: 1 你有时候希望在父类规定一些行为,让子类无法修改,但是这些实现是依赖一个子类才能获取的值,你又不可能知道所有的子类 ,没办法替它在父类里面初始化,这时候就需要在父类里面定义一个每个子类一个的,但又是静态的空间。 2 你需要每个子类都有一些公开的静态成员,这些成员的类型是子类类型 3 在不知道子类具 阅读全文
posted @ 2019-01-15 10:37 一只桔子2233 阅读(220) 评论(0) 推荐(0)
摘要: var progressBar1 = new System.Windows.Forms.ProgressBar(); float count = 150; progressBar1.Maximum = 100; progressBar1.Value = 0; float add = 100 / co 阅读全文
posted @ 2019-01-15 10:29 一只桔子2233 阅读(244) 评论(0) 推荐(0)
摘要: 1、C#中的Explicit和Implicit 阅读全文
posted @ 2019-01-15 10:11 一只桔子2233 阅读(108) 评论(0) 推荐(0)
摘要: class Program { static void Main() { var b1 = new BlockingCollection(); ThreadPool.QueueUserWorkItem(ConSumeItems, b1); for (int i = 0; i... 阅读全文
posted @ 2019-01-06 18:51 一只桔子2233 阅读(120) 评论(0) 推荐(0)
摘要: 30.3.2 Monitor类和同步块 30.3.3 ReaderWriterLockSlim类 阅读全文
posted @ 2019-01-06 16:49 一只桔子2233 阅读(169) 评论(0) 推荐(0)
摘要: /// /// 其他混合锁 /// internal sealed class AnotherHybridLock : IDisposable { //由基元用户模式构造(Interlocked的方法)使用 private int _waiters = 0; //AutoResetEvent 是基元... 阅读全文
posted @ 2019-01-06 10:49 一只桔子2233 阅读(326) 评论(0) 推荐(0)
摘要: /// /// 简单混合锁 /// internal sealed class SimpleHybridLock : IDisposable { //由基元用户模式构造(Interlocked的方法)使用 private int _waiters = 0; //AutoResetEvent 是基元内... 阅读全文
posted @ 2019-01-05 21:40 一只桔子2233 阅读(252) 评论(0) 推荐(0)
上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 56 下一页