Changeset 11135 for trunk/sources/HeuristicLab.Scripting
- Timestamp:
- 07/08/14 14:18:41 (10 years ago)
- Location:
- trunk/sources/HeuristicLab.Scripting/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Scripting/3.3/CSharpScript.cs
r11058 r11135 38 38 get { 39 39 return @"// use 'vars' to access variables in the script's variable store (e.g. vars.x = 5) 40 // use 'vars[string]' to access variables via runtime strings (e.g. vars[""x""] = 5) 40 41 // use 'vars.Contains(string)' to check if a variable exists 41 42 // use 'vars.Clear()' to remove all variables -
trunk/sources/HeuristicLab.Scripting/3.3/Variables.cs
r10727 r11135 20 20 } 21 21 22 public object this[string key] { 23 get { return variableStore[key]; } 24 set { variableStore[key] = value; } 25 } 26 22 27 public bool Contains(string variableName) { 23 28 return variableStore.ContainsKey(variableName);
Note: See TracChangeset
for help on using the changeset viewer.