LINQPadPlus 0.0.4
See the version list below for details.
dotnet add package LINQPadPlus --version 0.0.4
NuGet\Install-Package LINQPadPlus -Version 0.0.4
<PackageReference Include="LINQPadPlus" Version="0.0.4" />
<PackageVersion Include="LINQPadPlus" Version="0.0.4" />
<PackageReference Include="LINQPadPlus" />
paket add LINQPadPlus --version 0.0.4
#r "nuget: LINQPadPlus, 0.0.4"
#addin nuget:?package=LINQPadPlus&version=0.0.4
#tool nuget:?package=LINQPadPlus&version=0.0.4
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)
Creation
new Tag("div", "myid").Dump();
tags.Div.Dump() // if you don't need to override the Id
Add children
Use the index operator as a fluent method:
public Tag this[params HtmlNode[] kids]
The children can be:
- other tags
- strings
- LINQPad controls
- LINQPad dump containers
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. |
-
net9.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.