the important thing is not to stop questioning

导航

 

2015年12月22日

摘要: 在 C# 中可以对字符串使用 PadLeft 和 PadRight 进行轻松地补位。 PadLeft(int totalWidth, char paddingChar) //在字符串左边用 paddingChar 补足 totalWidth 长度 PadLeft(int totalWidth, ch... 阅读全文
posted @ 2015-12-22 17:01 qook 阅读(158) 评论(0) 推荐(0) 编辑
 
摘要: ProcessProcessThread:Process and ProcessThread objects have a ProcessorAffinity property of IntPtr type that can be directly manipulated to read/chang... 阅读全文
posted @ 2015-12-22 10:30 qook 阅读(179) 评论(0) 推荐(0) 编辑
 
摘要: Stopwatch 实例可以测量一个时间间隔的运行时间,也可以测量多个时间间隔的总运行时间。在典型的 Stopwatch 方案中,先调用 Start 方法,然后调用 Stop 方法,最后使用 Elapsed 属性检查运行时间。 阅读全文
posted @ 2015-12-22 09:58 qook 阅读(150) 评论(0) 推荐(0) 编辑