Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/09/14 16:59:34 (10 years ago)
Author:
jkarder
Message:

#2262:

  • IEnumerable<T> extension methods are supported by the variables collection
  • INamedItem variables get the item's name per default
  • variables can be renamed by pressing F2
  • variables are removed faster
  • multiple variables can be selected
  • the code editor supports scrolling while scripts are executed
Location:
trunk/sources/HeuristicLab.Scripting/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Scripting/3.3/CSharpScript.cs

    r11135 r11436  
    4242// use 'vars.Clear()' to remove all variables
    4343// 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
    4445
    4546using System;
  • trunk/sources/HeuristicLab.Scripting/3.3/CSharpScriptBase.cs

    r10857 r11436  
    2727namespace HeuristicLab.Scripting {
    2828  public abstract class CSharpScriptBase {
     29    protected Variables variables;
    2930    protected dynamic vars;
    3031
     
    4142
    4243    internal void Execute(VariableStore variableStore) {
    43       vars = new Variables(variableStore);
     44      variables = vars = new Variables(variableStore);
    4445      Main();
    4546    }
Note: See TracChangeset for help on using the changeset viewer.