diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-04-20 23:28:38 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-04-20 23:28:38 +0300 |
| commit | f06785ae3312a82b8f2237b55e8c4eeb174c3519 (patch) | |
| tree | a69adf9bf83c75f7afb5d9ce282ab20b04f1e7eb /Software/Experiments | |
| parent | 9f130d933ce847d03efe341dd89b7609c402ac00 (diff) | |
| download | Tango-f06785ae3312a82b8f2237b55e8c4eeb174c3519.tar.gz Tango-f06785ae3312a82b8f2237b55e8c4eeb174c3519.zip | |
Scripting.
Diffstat (limited to 'Software/Experiments')
| -rw-r--r-- | Software/Experiments/RoslynTest/ConsoleApp8/ConsoleApp8/lib_template.csx | 14 | ||||
| -rw-r--r-- | Software/Experiments/RoslynTest/ConsoleApp8/ConsoleApp8/main_template.csx | 16 |
2 files changed, 30 insertions, 0 deletions
diff --git a/Software/Experiments/RoslynTest/ConsoleApp8/ConsoleApp8/lib_template.csx b/Software/Experiments/RoslynTest/ConsoleApp8/ConsoleApp8/lib_template.csx new file mode 100644 index 000000000..93c79d32f --- /dev/null +++ b/Software/Experiments/RoslynTest/ConsoleApp8/ConsoleApp8/lib_template.csx @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +public class lib +{ + public void Show(String msg) + { + MessageBox.Show(msg); + } +} diff --git a/Software/Experiments/RoslynTest/ConsoleApp8/ConsoleApp8/main_template.csx b/Software/Experiments/RoslynTest/ConsoleApp8/ConsoleApp8/main_template.csx new file mode 100644 index 000000000..61d086068 --- /dev/null +++ b/Software/Experiments/RoslynTest/ConsoleApp8/ConsoleApp8/main_template.csx @@ -0,0 +1,16 @@ +#load "lib.csx" + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using ConsoleApp8; + +public TestResult OnExecute(String msg) +{ + lib l = new lib(); + l.Show(msg); + + return new TestResult() { Value = "This is a return value" }; +} |
