Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9866


Ignore:
Timestamp:
08/07/13 14:08:29 (11 years ago)
Author:
mkommend
Message:

#2055: Added comments to ShrinkDataAnalysisRunsMenuItem.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/MenuItems/ShrinkDataAnalysisRunsMenuItem.cs

    r9865 r9866  
    103103
    104104    private static bool EqualVariableValues(ValuesType values1, ValuesType values2) {
     105      //compare variable names for equality
    105106      if (!values1.Keys.SequenceEqual(values2.Keys)) return false;
    106107      foreach (var key in values1.Keys) {
     
    117118    private static readonly Action<Dataset, Dictionary<string, IList>> variableValuesSetter;
    118119    private static readonly Func<Dataset, Dictionary<string, IList>> variableValuesGetter;
     120    /// <summary>
     121    /// The static initializer is used to create expressions for getting and setting the private variableValues field in the dataset.
     122    /// This is done by expressions because the field is private and compiled expression calls are much faster compared to standad reflection calls.
     123    /// </summary>
    119124    static ShrinkDataAnalysisRunsMenuItem() {
    120125      var dataset = Expression.Parameter(typeof(Dataset));
Note: See TracChangeset for help on using the changeset viewer.