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