- Timestamp:
- 06/25/15 13:46:24 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/MenuItems/ShrinkDataAnalysisRunsMenuItem.cs
r12012 r12509 116 116 } 117 117 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; 120 120 /// <summary> 121 121 /// The static initializer is used to create expressions for getting and setting the private variableValues field in the dataset. … … 123 123 /// </summary> 124 124 static ShrinkDataAnalysisRunsMenuItem() { 125 var dataset = Expression.Parameter(typeof( Dataset));125 var dataset = Expression.Parameter(typeof(IDataset)); 126 126 var variableValues = Expression.Parameter(typeof(ValuesType)); 127 127 var valuesExpression = Expression.Field(dataset, "variableValues"); 128 128 var assignExpression = Expression.Assign(valuesExpression, variableValues); 129 129 130 var variableValuesSetExpression = Expression.Lambda<Action< Dataset, ValuesType>>(assignExpression, dataset, variableValues);130 var variableValuesSetExpression = Expression.Lambda<Action<IDataset, ValuesType>>(assignExpression, dataset, variableValues); 131 131 variableValuesSetter = variableValuesSetExpression.Compile(); 132 132 133 var variableValuesGetExpression = Expression.Lambda<Func< Dataset, ValuesType>>(valuesExpression, dataset);133 var variableValuesGetExpression = Expression.Lambda<Func<IDataset, ValuesType>>(valuesExpression, dataset); 134 134 variableValuesGetter = variableValuesGetExpression.Compile(); 135 135 }
Note: See TracChangeset
for help on using the changeset viewer.