Free cookie consent management tool by TermsFeed Policy Generator

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

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

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

File size: 727 bytes
RevLine 
[11721]1// use 'vars' to access variables in the script's variable store (e.g. vars.x = 5)
[11825]2// use 'vars[string]' to access variables via runtime strings (e.g. vars["x"] = 5)
[11721]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
[11787]8
9//using HeuristicLab.Collections;
10//using HeuristicLab.Data;
[11721]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
[11787]19}
Note: See TracBrowser for help on using the repository browser.