任何人都可以建议Partitioner可以/应该使用.NET 4.0中引入的类的典型场景吗?
当我运行此代码时,输出窗口顶部的数字是99701.为什么我不能一直看到1?我实际上看到所有数字都输出了,但是在控制台窗口,我只能滚动到足以看到99701(我猜).我在Vista Home上使用Visual C#express.:d
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using utilities;
namespace Testing_Project {
class Program {
static void Main(string[] args) {
List<string> myList = new List<string>();
for (int x = 0; x < 100000; x++)
myList.Add( x.ToString() );
foreach (string s in myList) {
Console.WriteLine(s);
}
Console.Read();
}
}
}
Run Code Online (Sandbox Code Playgroud)
Console.Write(s)很好,但是Console.Write(s +"\n")没有.我猜我只能向上滚动这么多新行?