-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use columns for properties when dumping collections? #30
Comments
Hi @wilka, a similar feature is already supported but it is turned-off by default. It can be turned-on either globally for all dumps or per-dump: Globally: Per dump: |
I know this isn't exactly like what you get from LinqPad, but I'm wondering how we can generalize this. LinqPad basically transposes the table. |
If it makes any difference, I'm not hugely concerned about the terminal width limits. I tend to run my Windows Terminal at full screen, and I have a large display. But I realise that won't be the case for everyone. I've been using Dumpify as a stepping stone from taking some LinqPad prototype code, and then turning it into a console app. |
@wilka, is this similar to what you were looking for? (Ignore the circular reference bug) Instead of |
Yup, that is what I had in mind. The difference is more useful when you have more) records, so you only have a single header row shared for multiple items. |
One of the handy things with LinqPad
.Dump()
is when you use it on a collection, you get a table with columns for each property. e.g. in LinqPad the code:gives:
but with Dumpify, it shows:
So I'd like to be able to have the more concise column-for-property format with collections.
The text was updated successfully, but these errors were encountered: