If I execute this VB expression:
New Hyperlinq("c:\temp\test.py").Dump()
As a result, I get a clickable link that opens the file by default, i.e. runs this python file.
I wanted to instruct LinqPad to a custom Sub that will take care of the Click event.
The Hyperlinq class contains a parameter Action, but I cannot find an example of how to use this method:
public Hyperlinq(string uriOrPath);
public Hyperlinq(QueryLanguage queryLanguage, string query);
public Hyperlinq(Action action, string text);
public Hyperlinq(string uriOrPath, string text);
public Hyperlinq(QueryLanguage queryLanguage, string query, string text);
public Hyperlinq(Action action, string text, bool runOnNewThread);
internal Hyperlinq(int editorRow, int editorColumn, string text);
public override bool Equals(object obj);
public override int GetHashCode();
internal int RegisterAction();
Can anyone provide an example?
For example, I want to open a file using Notepad when I click the link in the results pane.
theta source
share