Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10511


Ignore:
Timestamp:
02/25/14 15:36:29 (11 years ago)
Author:
jkarder
Message:

#2136: added Contains(string) method to check if a variable is present in the VariableStore

File:
1 edited

Legend:

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

    r10506 r10511  
    5252    }
    5353
    54     private class Variables : DynamicObject {
     54    protected class Variables : DynamicObject {
    5555      private readonly VariableStore variableStore;
    5656
     
    6666        variableStore[binder.Name] = value;
    6767        return true;
     68      }
     69
     70      public bool Contains(string variableName) {
     71        return variableStore.ContainsKey(variableName);
    6872      }
    6973    }
Note: See TracChangeset for help on using the changeset viewer.