using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Threading.Tasks;namespace GetSetTest{
class A { ...
分类:
其他好文 时间:
2014-05-10 07:39:24
阅读次数:
220
当我们在调试,优化我们的代码的时候,想知道某段代码的真正的执行时间,或者我们怀疑某段代码,或是某几段代码执行比较慢,需要得到具体的某段代码的具体执行时间的时候。有一个很好用的类Stopwatch。Stopwatch
类在 System.Diagnostics命名空间下。可以用来做分析.net代码.....
分类:
Web程序 时间:
2014-05-10 07:37:24
阅读次数:
400
组里用的几台机器换了网段,MongoDB需要做重新配置。查看Replica
Set的状态如下:rs.status(){ "startupStatus" : 1, "ok" : 0, "errmsg" : "loading
local.system.repls...
分类:
数据库 时间:
2014-05-10 06:26:06
阅读次数:
693
1.
在VS2005的Bin文件中添加对System.Web.Extensions.dll的引用,web.config 中之间自动添加对的引用:for:
........2. 在server BIN文件夹下添加文件System.Web.Extensions.dll3. 在之间,在之后添...
分类:
其他好文 时间:
2014-05-10 06:19:24
阅读次数:
260
public System.DateTime LatestEditedTime { get; set;
} public string LatestEditedTimeValue { get { ...
分类:
数据库 时间:
2014-05-10 06:13:39
阅读次数:
365
问题最近在给 android 系统的 data 分区制作 ext4
镜像,但是发现系统启动后,文件的 user 和 group 都变成了 root,不是原有的属性。困扰了很久。解决make_ext4fs 有一个选项是 ‘-a’
,即挂载点。这个选项是配合android/system/core/inc...
分类:
其他好文 时间:
2014-05-10 05:53:22
阅读次数:
1777
1 class SuperClass{ 2 3 public SuperClass() { 4
System.out.println("superclass "); 5 show(); 6 } 7 public void show() { 8
System.out...
分类:
编程语言 时间:
2014-05-10 05:47:03
阅读次数:
299
使用索引器的目的是为了能够像数组一样访问类中的数组型的对象。using
System;using System.Collections.Generic;using System.Linq;using
System.Text;using System.Threading.Tasks;namespace...
分类:
其他好文 时间:
2014-05-10 05:43:44
阅读次数:
218
参考资料:《大话设计模式》//模板方法模式--处理问题的步骤相同,但步骤的实现不同using
System;using System.Collections.Generic;using System.Linq;using
System.Text;namespace ds_templatemethod...
分类:
其他好文 时间:
2014-05-10 05:19:04
阅读次数:
322
参考资料:《大话设计模式》简单工厂模式://////简单工厂模式实验,2014.05.07---通过工厂类实例化对象///using System;using
System.Collections.Generic;using System.Linq;using System.Text;namespa...
分类:
其他好文 时间:
2014-05-10 05:16:31
阅读次数:
332