上一页 1 ··· 87 88 89 90 91 92 93 94 95 ··· 114 下一页
摘要: 最近被多线程问题(multi-thread issue)弄昏了头。以前虽然也知道系统里要考虑多线程问题,也无数次见到double-check的代码,但是由于自己碰到这方面的问题基本上就是从其他地方拷贝一份现成的代码,改吧改吧,也一直没有遇到多线程带来的bug,所以就没有留心。知道年前,一份两三个月前 阅读全文
posted @ 2017-03-27 10:29 甜菜波波 阅读(2510) 评论(0) 推荐(0)
摘要: 在Net中,由GC垃圾回收线程掌握对象资源的释放,程序员无法掌控析构函数的调用时机。对于一些非托管资源,比如数据库链接对象等,需要实现IDisposable接口进行手动的垃圾回收。那么什么时候使用Idisposable接口,以及如何使用呢? 一、IDisposable的接口定义如下 public i 阅读全文
posted @ 2017-03-24 17:08 甜菜波波 阅读(29155) 评论(0) 推荐(9)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace 不装箱调用显示实现接口 { class Program { static void Main(string[] args) { /... 阅读全文
posted @ 2017-03-24 16:18 甜菜波波 阅读(163) 评论(0) 推荐(0)
摘要: 当结构类型的值被转换为object 类型或由该结构实现的接口类型时,就会执行一次装箱操作。 阅读全文
posted @ 2017-03-24 15:18 甜菜波波 阅读(157) 评论(0) 推荐(0)
摘要: 一个类只能有一个静态构造函数,该构造函数不能有访问修饰符,不能带任何参数,不能直接调用,只能在: 1 创建类实例时 2 访问包含静态构造函数的静态成员时 会先调用静态构造函数,无论创建了多少个类实例,其静态构造函数都只调用了一次。 阅读全文
posted @ 2017-03-24 11:40 甜菜波波 阅读(169) 评论(0) 推荐(0)
摘要: using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Reflection; using System.Collections.ObjectModel; namespace 泛基 { class... 阅读全文
posted @ 2017-03-24 10:37 甜菜波波 阅读(268) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Test { class Program { static void Main(string[] args) ... 阅读全文
posted @ 2017-03-23 15:05 甜菜波波 阅读(3305) 评论(1) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using ServiceStack.Redis; namespace RedisTest3_LPUSH { class Pro 阅读全文
posted @ 2017-03-23 14:44 甜菜波波 阅读(1970) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using ServiceStack.Redis; using ServiceStack.Common; using Syste 阅读全文
posted @ 2017-03-23 14:12 甜菜波波 阅读(155) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Runtime.Remoting.Proxies; using System.Runtime.Remoting.Messaging; using System.Ru... 阅读全文
posted @ 2017-03-17 11:16 甜菜波波 阅读(537) 评论(0) 推荐(0)
上一页 1 ··· 87 88 89 90 91 92 93 94 95 ··· 114 下一页