Free cookie consent management tool by TermsFeed Policy Generator

Changeset 11826 for trunk


Ignore:
Timestamp:
01/27/15 09:15:21 (10 years ago)
Author:
jkarder
Message:

#2262: moved SafeVariableNameRegex and DefaultVariableName to the top of the class

File:
1 edited

Legend:

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

    r11734 r11826  
    4747    #endregion
    4848
     49    private readonly Regex SafeVariableNameRegex = new Regex("^[@]?[_a-zA-Z][_a-zA-Z0-9]*$");
     50    private const string DefaultVariableName = "enter_name";
    4951    protected readonly Dictionary<string, ListViewItem> itemListViewItemMapping;
    5052    protected readonly Dictionary<Type, bool> serializableLookup;
     
    288290    }
    289291
    290     private readonly Regex SafeVariableNameRegex = new Regex("^[@]?[_a-zA-Z][_a-zA-Z0-9]*$");
    291     private const string DefaultVariableName = "enter_name";
    292 
    293292    private void variableListView_AfterLabelEdit(object sender, LabelEditEventArgs e) {
    294293      string name = e.Label;
Note: See TracChangeset for help on using the changeset viewer.