source:
stable/HeuristicLab.Scripting/3.3/Scripts/Templates/CSharpScriptTemplate.cs
@
17120
Last change on this file since 17120 was 17105, checked in by mkommend, 6 years ago | |
---|---|
File size: 851 bytes |
Line | |
---|---|
1 | // use 'vars' to access variables in the script's variable store (e.g. vars.x = 5) |
2 | // use 'vars[string]' to access variables via runtime strings (e.g. vars["x"] = 5) |
3 | // use 'vars.Contains(string)' to check if a variable exists |
4 | // use 'vars.Clear()' to remove all variables |
5 | // use 'foreach (KeyValuePair<string, object> v in vars) { ... }' to iterate over all variables |
6 | // use 'variables' to work with IEnumerable<T> extension methods on the script's variable store |
7 | |
8 | using System; |
9 | using System.Linq; |
10 | using System.Collections.Generic; |
11 | |
12 | using HeuristicLab.Core; |
13 | using HeuristicLab.Common; |
14 | //using HeuristicLab.Collections; |
15 | //using HeuristicLab.Data; |
16 | |
17 | public class MyScript : HeuristicLab.Scripting.CSharpScriptBase { |
18 | public override void Main() { |
19 | // type your code here |
20 | } |
21 | |
22 | // implement further classes and methods |
23 | |
24 | } |
Note: See TracBrowser
for help on using the repository browser.