- Timestamp:
- 09/16/19 16:12:21 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Data/3.3/EnumValue.cs
r17226 r17253 22 22 using System; 23 23 using System.Drawing; 24 using HEAL.Attic; 24 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; 26 using HEAL.Attic;27 27 28 28 namespace HeuristicLab.Data { … … 39 39 } 40 40 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) { } 49 43 50 44 [StorableConstructor] … … 61 55 return Value.CompareTo(other.Value); 62 56 } 57 58 public new EnumValue<T> AsReadOnly() { 59 return (EnumValue<T>)base.AsReadOnly(); 60 } 63 61 } 64 62 }
Note: See TracChangeset
for help on using the changeset viewer.