Home

Util.HighLight returning the passed type?

Could the HighLight (and HighLightIf) function return (the passed type) instead of "object" (LINQPad.ObjectGraph.Highlight)? From my layman POV, one way to achieve this would be for LINQPad to maintain a per execution static hashset of weak references to all objects highlighted (and associated HighLightIf predicates).
The Dump() command would then inspect this hashset during processing to see if a reference being processed has been marked for highlighting.
This is certainly not a biggie, but the natural flow that you get used to with Dump() (returning Enumerable) is not there with HighLight, and the resulting Anonymous Types are hard to process further (transform/sort/group).
Sign In or Register to comment.