What can I do with the LINQPad.Runtime?

252 Views Asked by At

Just learning about LINQPad and I am trying to do understand what I can do with the LINQPad.Runtime NuGet package. Where can I find the docs for this? Also, is this package the right one for NET6?

1

There are 1 best solutions below

0
Joe Albahari On BEST ANSWER

If you reference this package from a Visual Studio project, you can call Util.ToHtmlString to format objects as HTML via the Dump pipeline. You can also call Util.Run to execute LINQPad scripts - this makes it easier to pass parameters to the script and receive return values than shelling out to lprun.

LINQPad.Runtime works all versions of .NET >= .NET Core 3.1.