Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1052961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:10:41+00:00 2026-05-16T17:10:41+00:00

Does anyone have a complete list of LINQPad extension methods and methods, such as

  • 0

Does anyone have a complete list of LINQPad extension methods and methods, such as

.Dump()

SubmitChanges()
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T17:10:41+00:00Added an answer on May 16, 2026 at 5:10 pm

    LINQPad defines two extension methods (in LINQPad.Extensions), namely Dump() and Disassemble(). Dump() writes to the output window using LINQPad’s output formatter and is overloaded to let you specify a heading:

    typeof (int).Assembly.Dump ();
    typeof (int).Assembly.Dump ("mscorlib");
    

    You can also specify a maximum recursion depth to override the default of 5 levels:

    typeof (int).Assembly.Dump (1);              // Dump just one level deep
    typeof (int).Assembly.Dump (7);              // Dump 7 levels deep
    typeof (int).Assembly.Dump ("mscorlib", 7);  // Dump 7 levels deep with heading
    

    Disassemble() disassembles any method to IL, returning the output in a string:

    typeof (Uri).GetMethod ("GetHashCode").Disassemble().Dump();
    

    In addition to those two extension methods, there are some useful static methods in LINQPad.Util. These are documented in autocompletion, and include:

    • Cmd – executes a shell command or external program
    • CreateXhtmlWriter – creates a text writer that uses LINQPad’s Dump() formatter
    • SqlOutputWriter – returns the text writer that writes to the SQL output window
    • GetMyQueries, GetSamples – returns a collection of objects representing your saved queries / samples (for an example, execute a search using Edit | Search All)
    • Highlight – wraps an object so that it will highlight in yellow when Dumped
    • HorizontalRun – lets you Dump a series of objects on the same line

    LINQPad also provides the HyperLinq class. This has two purposes: the first is to display ordinary hyperlinks:

    new Hyperlinq ("www.linqpad.net").Dump();
    new Hyperlinq ("www.linqpad.net", "Web site").Dump();
    new Hyperlinq ("mailto:user@domain.example", "Email").Dump();
    

    You can combine this with Util.HorizontalRun:

    Util.HorizontalRun (true,
      "Check out",
       new Hyperlinq ("http://stackoverflow.com", "this site"),
      "for answers to programming questions.").Dump();
    

    Result:

    Check out this site for answers to programming questions.

    The second purpose of HyperLinq is to dynamically build queries:

    // Dynamically build simple expression:
    new Hyperlinq (QueryLanguage.Expression, "123 * 234").Dump();
    
    // Dynamically build query:
    new Hyperlinq (QueryLanguage.Expression, @"from c in Customers
    where c.Name.Length > 3
    select c.Name", "Click to run!").Dump();
    

    You can also write your own extension methods in LINQPad. Go to ‘My Queries’ and click the query called ‘My Extensions’. Any types/methods that define here are accessible to all queries:

    void Main()
    {
      "hello".Pascal().Dump();
    }
    
    public static class MyExtensions
    {
      public static string Pascal (this string s)
      {
        return char.ToLower (s[0]) + s.Substring(1);
      }
    }
    

    In 4.46(.02) new classes and methods have been introduced:

    • DumpContainer (class)
    • OnDemand (extension method)
    • Util.ProgressBar (class)

    Additionally, the Hyperlinq class now supports an Action delegate that will be called when you click the link, allowing you to react to it in code and not just link to external webpages.

    DumpContainer is a class that adds a block into the output window that can have its contents replaced.

    NOTE! Remember to .Dump() the DumpContainer itself in the appropriate spot.

    To use:

    var dc = new DumpContainer();
    dc.Content = "Test";
    // further down in the code
    dc.Content = "Another test";
    

    OnDemand is an extension method that will not output the contents of its parameter to the output window, but instead add a clickable link, that when clicked will replace the link with the .Dump()ed contents of the parameter. This is great for sometimes-needed data structures that is costly or takes up a lot of space.

    NOTE! Remember to .Dump() the results of calling OnDemand in the appropriate spot.

    To use it:

    Customers.OnDemand("Customers").Dump(); // description is optional
    

    Util.ProgressBar is a class that can show a graphical progressbar inside the output window, that can be changed as the code moves on.

    NOTE! Remember to .Dump() the Util.ProgressBar object in the appropriate spot.

    To use it:

    var pb = new Util.ProgressBar("Analyzing data");
    pb.Dump();
    for (int index = 0; index <= 100; index++)
    {
        pb.Percent = index;
        Thread.Sleep(100);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone have a complete and working DI sample for WCF? Every sample I
does anyone have any json tutorials that are easy enough to understand for a
I have a UITableView with a list of items, each having it's own image.
I have a custom list definition created via visual studio 2010. I would like
I have setup an application to parse about 3000 files a day where each
I have a C++ application that has some minimal leaks, and I would like
I'm writing an add-in for Media Center (the version that comes with Windows 7)
I want to get some data from companies' Facebook pages, but I don't know
I want to test the behavior of a first-time app install with regard to
I'd like to know if there is a Pythonic way for handling errors in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.