Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/HeuristicLab.Scripting/3.3/Scripts/Templates/CSharpScriptTemplate.cs @ 16565

Last change on this file since 16565 was 16565, checked in by gkronber, 5 years ago

#2520: merged changes from PersistenceOverhaul branch (r16451:16564) into trunk

File size: 727 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
9//using HeuristicLab.Collections;
10//using HeuristicLab.Data;
11
12public class MyScript : HeuristicLab.Scripting.CSharpScriptBase {
13  public override void Main() {
14    // type your code here
15  }
16
17  // implement further classes and methods
18
19}
Note: See TracBrowser for help on using the repository browser.