LINQPadPlus 0.0.9
dotnet add package LINQPadPlus --version 0.0.9
NuGet\Install-Package LINQPadPlus -Version 0.0.9
<PackageReference Include="LINQPadPlus" Version="0.0.9" />
<PackageVersion Include="LINQPadPlus" Version="0.0.9" />
<PackageReference Include="LINQPadPlus" />
paket add LINQPadPlus --version 0.0.9
#r "nuget: LINQPadPlus, 0.0.9"
#addin nuget:?package=LINQPadPlus&version=0.0.9
#tool nuget:?package=LINQPadPlus&version=0.0.9
LINQPadPlus
LINQPadPlus is a library for adding useful functionality to LINQPad.
Install
- 📦 NuGet:
dotnet add package LINQPadPlus
Features
- Collection on LINQPad samples to learn the library
- Surface JavaScript runtime and compilation errors as Exceptions
- Powerful HTML building blocks
- Designed with reactivity in mind
- Integration with Tabulator to display tables
- Upcoming: integration with Plotly
Usage
Running JavaScript
JS.Run("external.log('Hello')"); // Hello
JS.Return("'abc'").Dump(); // abc
// same as above but this form is useful for more complex code
JS.Return("""
(function() {
return 'abc'
})()
""");
Chances are you will write wrong JavaScript in LINQPad before writing correct one. And this is where these functions will help you. If you write incorrect code these will show you exactly what the issue is:
JS.Run("extern al.log('Hello')");
Notice that your code is wrapped in some boilerplate to catch the errors.
It handles:
- compilation errors
- runtime errors
- runtime errors in async code
Using Tags (HTML)
t.Div.Dump() // create a div
t.Div.id("myid") // set Id
t.Div.cls("myclass") // set class (can be called multiple times)
t.Div.style("font-size:12px; color:blue") // set styles (can be called multiple times)
t.Button.enable(false) // disabled button
// add children
public Tag this[params HtmlNode[] kids]
t.Label[
t.Input // other tag
.attr("type", "checkbox"), // set attributes
"Checkbox", // text node
new LINQPad.Controls.Span("text"), // support LINQPad controls
new DumpContainer("content") // support LINQPad DumpContainer
].Dump();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- AngleSharp (>= 1.3.0)
- JetBrains.Annotations (>= 2024.3.0)
- LINQPad.Runtime (>= 8.3.7)
- Microsoft.ClearScript (>= 7.5.0)
- System.Reactive (>= 6.0.1)
-
net9.0
- AngleSharp (>= 1.3.0)
- JetBrains.Annotations (>= 2024.3.0)
- LINQPad.Runtime (>= 8.3.7)
- Microsoft.ClearScript (>= 7.5.0)
- System.Reactive (>= 6.0.1)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on LINQPadPlus:
Package | Downloads |
---|---|
LINQPadPlus.Plotly
LINQPad utilities to run JavaScript, render dynamic HTML, plotting and more |
|
LINQPadPlus.Tabulator
LINQPad utilities to run JavaScript, render dynamic HTML, plotting and more |
GitHub repositories
This package is not used by any popular GitHub repositories.