Home

Incorrect output when using Console.WriteLine with Util.WithStyle

The output from BenchMarkDotNet has a formatting issue and I think this is a bug in LinqPad.

The following illustrates the issue.

Console.Write    (Util.WithStyle("1", "color:#008080"));
Console.WriteLine(Util.WithStyle("2", "color:#008080"));
Console.Write    (Util.WithStyle("3", "color:#008080"));
Console.WriteLine(Util.WithStyle("4", "color:#008080"));

I would expect the output to be

12
34

but is

1
2
3
4

Comments

Sign In or Register to comment.