Changeset 10727 for trunk/sources/HeuristicLab.Scripting/3.3/Script.cs
- Timestamp:
- 04/07/14 10:36:52 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Scripting/3.3/Script.cs
r10577 r10727 45 45 private const string ExecuteMethodName = "Execute"; 46 46 private const string CodeTemplate = 47 @"// use 'vars' to access variables in the script's variable store 48 // vars has a Contains(string) method to check if a variable exists and implements IEnumerable 47 @"// use 'vars' to access variables in the script's variable store (e.g. vars.x = 5) 48 // use 'vars.Contains(string)' to check if a variable exists 49 // use 'vars.Clear()' to remove all variables 50 // use 'foreach (KeyValuePair<string, object> v in vars) { ... }' to iterate over all variables 49 51 50 52 using System;
Note: See TracChangeset
for help on using the changeset viewer.