Extension Toolkit for LINQPad.
new Vertical
{
"Top",
"Bottom"
}.Dump();
Top
Bottom
new Horizontal
{
"Left",
"Right"
}.Dump();
Left Right
var a = State.Use(1);
var b = State.Use(2);
new Horizontal
{
new TextBox(width: "50px").Bind(a),
"+",
new TextBox(width: "50px").Bind(b),
"=",
new Span().Bind(State.From(() => a + b)),
}.Dump("Calculator");
1 + 2 = 3
void Main()
{
new CodeSnippet(SyntaxLanguageStyle.CSharp)
{
"""
Console.WriteLine("Render code in LINQPad !");
"""
}.Dump();
}
Console.WriteLine("Render code in LINQPad !");
void Main()
{
Mermaid.Import();
new Mermaid
{
"""
graph TB
A --> B
A --> C
"""
}.Dump("Mermaid");
}
graph TB
A --> B
A --> C
void Main()
{
Mermaid.Import();
new Mermaid.TreeGraph
{
new TreeNode("A")
{
new TreeNode("B")
{
new TreeNode("D"),
null,
},
new TreeNode("C")
{
null,
new TreeNode("E"),
},
}
}.Dump("Mermaid.TreeGraph");
}
graph TB
A((A)) --- B((B))
B((B)) --- D((D))
B((B)) --- 8db619b9-315e-44aa-b101-75aeba2ceda2(( ))
style 8db619b9-315e-44aa-b101-75aeba2ceda2 fill:transparent,stroke-width:0px
A((A)) --- C((C))
C((C)) --- 063a88a0-0be4-4d66-a5cb-7f3924fa682a(( ))
style 063a88a0-0be4-4d66-a5cb-7f3924fa682a fill:transparent,stroke-width:0px
C((C)) --- E((E))
linkStyle 2 stroke-width:0px
linkStyle 4 stroke-width:0px
void Main()
{
KaTex.Import();
var a = new KaTex
{
"c = \\pm\\sqrt{a^2 + b^2}"
}.Dump();
}
new Memory(true)
{
(int)7,
(int)-7,
(float)7,
(float)-7,
}.Dump();