Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/25/15 18:21:19 (10 years ago)
Author:
dglaser
Message:

#2388: Merged trunk into HiveStatistics branch

Location:
branches/HiveStatistics/sources/HeuristicLab.Problems.DataAnalysis.Views
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveStatistics/sources/HeuristicLab.Problems.DataAnalysis.Views

  • branches/HiveStatistics/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/MenuItems/ShrinkDataAnalysisRunsMenuItem.cs

    r12012 r12515  
    116116    }
    117117
    118     private static readonly Action<Dataset, Dictionary<string, IList>> variableValuesSetter;
    119     private static readonly Func<Dataset, Dictionary<string, IList>> variableValuesGetter;
     118    private static readonly Action<IDataset, Dictionary<string, IList>> variableValuesSetter;
     119    private static readonly Func<IDataset, Dictionary<string, IList>> variableValuesGetter;
    120120    /// <summary>
    121121    /// The static initializer is used to create expressions for getting and setting the private variableValues field in the dataset.
     
    123123    /// </summary>
    124124    static ShrinkDataAnalysisRunsMenuItem() {
    125       var dataset = Expression.Parameter(typeof(Dataset));
     125      var dataset = Expression.Parameter(typeof(IDataset));
    126126      var variableValues = Expression.Parameter(typeof(ValuesType));
    127127      var valuesExpression = Expression.Field(dataset, "variableValues");
    128128      var assignExpression = Expression.Assign(valuesExpression, variableValues);
    129129
    130       var variableValuesSetExpression = Expression.Lambda<Action<Dataset, ValuesType>>(assignExpression, dataset, variableValues);
     130      var variableValuesSetExpression = Expression.Lambda<Action<IDataset, ValuesType>>(assignExpression, dataset, variableValues);
    131131      variableValuesSetter = variableValuesSetExpression.Compile();
    132132
    133       var variableValuesGetExpression = Expression.Lambda<Func<Dataset, ValuesType>>(valuesExpression, dataset);
     133      var variableValuesGetExpression = Expression.Lambda<Func<IDataset, ValuesType>>(valuesExpression, dataset);
    134134      variableValuesGetter = variableValuesGetExpression.Compile();
    135135    }
Note: See TracChangeset for help on using the changeset viewer.