Extend Hyperlinq() feature

It is possible to extend functionality with Action of Hyperlinq class for "new Hyperlinq((value) => {...}, ...)" in some new (beta) version? This would be great for comfortable interactive dumps..


  • How would this work? Would it be like new Hyperlinq (() => Util.ReadLine ("test").Dump(), "test")?
  • edited January 2018
    I know I can do it this way. But this is not exactly what I mean.. What I am talking about is this:
    var html1 = "<script>
    function button1_Click() {
    var value1 = JSON
    text1: document
    text2: document

    <label for='text1'>
    Text #1:
    <input type='text' id='text1' />
    <label for='text2'>
    Text #2:
    <input type='text' id='text2' />
    <button onclick='button1_Click();'>
    Test #1

    .RawHtml("<style> a.hidden { display: none; }</style>")

    (new Hyperlinq((value) => { ... JsonConvert.DeserializeObject<SomeType>(value); ... }, ".")
    CssClass = "hidden"

    This way would be possible to build complex html forms to gather some LINQPad query parameters (for example) directly in results pane.. And I am pretty sure, that many LINQPad users would appreciate this feature.

    PS: If there will be option to identify Hyperlinq action with some string Id too (not only position) then the call from html could be ..RunUserAction('myAction1'...) and this will be really cool ;)
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!