This build has significant new features for interactivity and in-place rendering:
var dc = new DumpContainer().Dump ("Watch me change"); for (int i = 0; i < 100; i++) { Thread.Sleep(200); dc.Content = "I am now " + i; }
new Hyperlinq (() => MessageBox.Show ("Hello, world!"), "Click me")
new Hyperlinq (() => RSA.Create().ToXmlString (true).Dump(), "Generate keypair")
Util.OnDemand ("Generate keypair", () => RSA.Create().ToXmlString(true))
When clicked, this executes the given Func delegate and dumps the result in-place, replacing the original hyperlink. This is useful for user-initiated queries.
Customers.OnDemand()
from c in Customers let bigSales = c.SalesOrderHeaders.Where (soh => soh.TotalDue > 100000) where bigSales.Any() select new { c.Store.Name, BigSales = bigSales.OnDemand() }
public static DumpContainer OnDemand<T> (string description, Func<T> funcToEvalAndDump, bool runOnNewThread) { var dc = new DumpContainer(); dc.Content = new Hyperlinq (() => { dc.Content = "Executing..."; dc.Content = funcToEvalAndDump (); }, description, runOnNewThread); return dc; }
public static DumpContainer OnDemand (this IEnumerable sequence, string description) { return Util.OnDemand (description, () => sequence); }
Task.Delay(2000).ContinueWith (_ => "Hello, world!").Dump();
Enumerable.Range (0, 30).Select (e => Task.Delay(e * 100).ContinueWith (_ => e)).Dump();
var prog = new Util.ProgressBar ("Processing").Dump(); for (int i = 0; i < 101; i++) { Thread.Sleep(50); prog.Percent = i; } prog.Caption = "Done";
Other new features:
Download LINQPad Beta for Framework 4.x Download LINQPad Beta for Framework 4.x (Any CPU)* Download LINQPad Beta for Framework 3.5
*The AnyCPU build lets you access all available memory, but you can't reference assemblies built only for X86.
Subscribe to the following list if you'd like to be notified about new betas:
Over 1 million downloads
LINQPad
Follow LINQPad on Facebook
LINQPad Forum
LINQPad + Mindscape LightSpeed
LINQPad + OData
LINQPad + DevForce
LINQPad + DevArt
AWS with LINQPad
Method Chaining and Debugging
LINQBugging WinForms/WPF
Terry's LINQPad Extensions
Writing queries with LINQPad - Hi-res QuickTime
LINQPad + EF
V2 and Beyond
Dimecasts LINQPad Intro
LINQPad was written by Joseph Albahari © 2007-2012. Site hosted in Windows Azure