Git Product home page Git Product logo

linqpadutils's Introduction

LINQPadUtils

A small collection of extension methods which I find useful for LINQPad on occasion. They display a little more information than the Dump() counterpart. Use with caution on large data sets.

Download the compiled binary here

DumpReflect()

In addition to the standard Dump() output, this will also obtain values by calling methods which do not contain any parameters. Private, internal, protected and private members are also displayed. There's also an option to specify the reflected depth which works a little differently. The main difference being that primitive types are also reflected rather than simply being displayed.

All of the standard overloads of the builtin Dump() method are supported.

DumpReflect Screenshot

DumpSort()

Not quite as sophisticated as its Dump() counterpart, but allows tables to be sorted and exported as HTML.

DumpJson()

Displays an object graph much like the Dump() method, but Json formatted.

DumpJson Screenshot

Reflect()

Reflects over a type and gets the values required for DumpReflect(). Can be used in conjunction with Dump(). For example, obj.Reflect().DumpJson() or obj.Reflect().Dump() which is equivalent to DumpReflect().

Known issues

  • For some types DumpReflect().DumpJson() will fail due to cyclic dependencies.

  • The DumpSort() extension method is still very buggy but works great on simple collections if you need to sort a data set and export it as HTML. Reverse engineering the LINQPad Dump() method with the same polish is much harder than it looks :-)

linqpadutils's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.