wasSharpNET

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 21  →  ?path2? @ 22
/Console/ConsoleExtensions.cs
@@ -119,9 +119,10 @@
switch (alignment)
{
case ConsoleTextAlignment.TOP_CENTER:
var textBlock = data.Select(o => o.ToString()).ToArray();
var enumerable = data as IList<object> ?? data.ToList();
var textBlock = enumerable.Select(o => o.ToString()).ToArray();
var padding = Math.Max(System.Console.WindowWidth / 2 - textBlock.Select(o => o.Length).Max() / 2, 0);
foreach (var line in data)
foreach (var line in enumerable)
{
System.Console.CursorLeft = padding;
WriteLine(line, System.Console.ForegroundColor);