Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Canonical Console.WriteLine in LinqPad

Tags:

linqpad

Linqpad's souped-up Console.WriteLine is awesome. However, how can I do a standard Console.WriteLine of an object?

like image 757
Colonel Panic Avatar asked Oct 04 '12 11:10

Colonel Panic


2 Answers

Debug.WriteLine will also do the trick.

like image 77
Joe Albahari Avatar answered Sep 29 '22 02:09

Joe Albahari


Huh, obvious now - put in an explicit ToString

Console.WriteLine(x.ToString());
like image 22
Colonel Panic Avatar answered Sep 29 '22 02:09

Colonel Panic