Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/16/19 16:12:21 (5 years ago)
Author:
abeham
Message:

#2521: worked on refactoring PTSP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Data/3.3/EnumValue.cs

    r17226 r17253  
    2222using System;
    2323using System.Drawing;
     24using HEAL.Attic;
    2425using HeuristicLab.Common;
    2526using HeuristicLab.Core;
    26 using HEAL.Attic;
    2727
    2828namespace HeuristicLab.Data {
     
    3939    }
    4040
    41     public EnumValue() {
    42       this.value = default(T);
    43       this.readOnly = false;
    44     }
    45     public EnumValue(T value) {
    46       this.value = value;
    47       this.readOnly = false;
    48     }
     41    public EnumValue() : base(default(T)) { }
     42    public EnumValue(T value, bool @readonly = false) : base(value, @readonly) { }
    4943
    5044    [StorableConstructor]
     
    6155      return Value.CompareTo(other.Value);
    6256    }
     57
     58    public new EnumValue<T> AsReadOnly() {
     59      return (EnumValue<T>)base.AsReadOnly();
     60    }
    6361  }
    6462}
Note: See TracChangeset for help on using the changeset viewer.