每行显示多少个
public static void PrintValues( IEnumerable myList, int myWidth ) {
54
int i = myWidth;
55
foreach ( Object obj in myList ) {
56
if ( i <= 0 ) {
57
i = myWidth;
58
Console.WriteLine();
59
}
60
i--;
61
Console.Write( "{0,8}", obj );
62
}
63
Console.WriteLine();
64
}
浙公网安备 33010602011771号