Changeset 11436 for trunk/sources/HeuristicLab.Scripting
- Timestamp:
- 10/09/14 16:59:34 (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
r11135 r11436 42 42 // use 'vars.Clear()' to remove all variables 43 43 // use 'foreach (KeyValuePair<string, object> v in vars) { ... }' to iterate over all variables 44 // use 'variables' to work with IEnumerable<T> extension methods on the script's variable store 44 45 45 46 using System; -
trunk/sources/HeuristicLab.Scripting/3.3/CSharpScriptBase.cs
r10857 r11436 27 27 namespace HeuristicLab.Scripting { 28 28 public abstract class CSharpScriptBase { 29 protected Variables variables; 29 30 protected dynamic vars; 30 31 … … 41 42 42 43 internal void Execute(VariableStore variableStore) { 43 var s = new Variables(variableStore);44 variables = vars = new Variables(variableStore); 44 45 Main(); 45 46 }
Note: See TracChangeset
for help on using the changeset viewer.