Question: Where is String.Dump() extension method? #1613
Replies: 4 comments
-
I'm not the original author of that example but I've encountered It's a pretty awesome feature of the code scratchpad, so it could be the author of the example was using that. |
Beta Was this translation helpful? Give feedback.
-
@philjones The Dump() method is used many times in various CsvHelper examples, not just the quoted sample. In fact IEnumerables have a Dump() extension method as shown here. So I am guessing, I am just missing a namespace include, but just not sure what it is. |
Beta Was this translation helpful? Give feedback.
-
@bancroftway Josh uses LINQPad when he is creating those examples. It confused me too trying to figure out where that extension method was, but he confirmed that was what he was using. |
Beta Was this translation helpful? Give feedback.
-
Yes, it's an extension method included in LINQPad. It prints object graphs in a graphical manner. I use LINQPad for all my examples because it's so fast to get an example up and running. I highly recommend it. |
Beta Was this translation helpful? Give feedback.
-
I am trying to use CsvHelper to write a datatable to csv, and found some sample code here.
I have installed the latest version (15.0.10) of CsvHelper from nuget.
However, I cannot locate the Dump() extension method on string class. Where is this declared, and what namespace do I need to import? Curiously, Visual Studio intellisense cannot suggest the namespace to import, so maybe something got changed? Thanks
Beta Was this translation helpful? Give feedback.
All reactions