Map Console.WriteLine to Dump extension method
Often times I use LINQPad to throw together some sample code to post on Stack Overflow. While the veterans will clearly recognize code that uses the Dump() extension method as LINQPad code, beginners are puzzled. So I change it all to Console.WriteLine before posting. It would be nice if I could start with Console.WriteLine and have that behave the way Dump() would.
0
votes

-
Josh Einstein commented
Beautiful! I had never even tried.
-
It already works like that - Console.WriteLine and .Dump() do the same thing in LINQPad. Is there some way in which it isn't behaving correctly?