Changeset 14059


Ignore:
Timestamp:
07/13/16 12:11:46 (12 months ago)
Author:
abeham
Message:

#2431: Removed NonDiscoverableType attribute on ResultParameter

Location:
branches/PerformanceComparison
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/PerformanceComparison/HeuristicLab.Optimization/3.3/Results/ResultParameter.cs

    r14058 r14059  
    2727using HeuristicLab.Parameters;
    2828using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    29 using HeuristicLab.PluginInfrastructure;
    3029
    3130namespace HeuristicLab.Optimization {
    3231  [Item("ResultParameter", "A parameter whose value is written to a result collection.")]
    3332  [StorableClass]
    34   [NonDiscoverableType]
    3533  public sealed class ResultParameter<T> : LookupParameter<T>, IResultParameter<T> where T : class, IItem {
    3634    public override Image ItemImage { get { return VSImageLibrary.Exception; } }
     
    7977      if (string.IsNullOrEmpty(resultCollectionName)) throw new ArgumentException("resultCollectionName");
    8078      this.resultCollectionName = resultCollectionName;
    81     } 
     79    }
    8280    public ResultParameter(string name, string description, string resultCollectionName, T defaultValue)
    8381      : base(name, description, string.Empty) {
     
    8785      this.defaultValue = defaultValue;
    8886    }
    89    
     87
    9088    protected override IItem GetActualValue() {
    9189      ResultCollection results;
     
    104102      if (!results.TryGetValue(ActualName, out result)) {
    105103        if (DefaultValue == null) throw new InvalidOperationException("ResultParameter (" + ActualName + "): Result not found and no default value specified.");
    106         result = new Result(ActualName, (T)DefaultValue.Clone()); 
     104        result = new Result(ActualName, (T)DefaultValue.Clone());
    107105        results.Add(result);
    108106      }
  • branches/PerformanceComparison/PerformanceComparison.sln

    r13706 r14059  
    130130    HideSolutionNode = FALSE
    131131  EndGlobalSection
    132   GlobalSection(Performance) = preSolution
    133     HasPerformanceSessions = true
    134   EndGlobalSection
    135132EndGlobal
Note: See TracChangeset for help on using the changeset viewer.