Free cookie consent management tool by TermsFeed Policy Generator

Changeset 11154 for stable


Ignore:
Timestamp:
07/09/14 08:59:19 (10 years ago)
Author:
abeham
Message:

#2209: merged to stable

Location:
stable
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Scripting/3.3/CSharpScript.cs

    r11090 r11154  
    3838      get {
    3939        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)
    4041// use 'vars.Contains(string)' to check if a variable exists
    4142// use 'vars.Clear()' to remove all variables
  • stable/HeuristicLab.Scripting/3.3/Variables.cs

    r10892 r11154  
    2020    }
    2121
     22    public object this[string key] {
     23      get { return variableStore[key]; }
     24      set { variableStore[key] = value; }
     25    }
     26
    2227    public bool Contains(string variableName) {
    2328      return variableStore.ContainsKey(variableName);
Note: See TracChangeset for help on using the changeset viewer.