Custom ToDump works in Rich Text but not Data Grids?

I have a class for which I have implemented a custom ToDump that returns a sequence of integers, an IEnumerable<int>. In Rich Text mode, the returned sequence is iterated and rendered as one would imagine, but in Data Grids mode, it dumps the sequence object instead of iterating its elements:



This feels like a bug. Is there a fix or workaround to this?

I have also uploaded the query to Instant Share. Press Ctrl+Shift+T to enter Rich Text mode, then F5 to run the query and you should see a sequence of hundred numbers display display. Ctrl+Shift+G to enter Data Grids mode, then F5 to run the query again this time you should see something similar to the image above.

Comments

Sign In or Register to comment.