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/TextValue.cs

    r17226 r17253  
    2020#endregion
    2121
     22using HEAL.Attic;
    2223using HeuristicLab.Common;
    2324using HeuristicLab.Core;
    24 using HEAL.Attic;
    2525
    2626namespace HeuristicLab.Data {
     
    2929  public class TextValue : StringValue, ITextValue {
    3030
    31     public TextValue() {
    32       this.value = string.Empty;
    33       this.readOnly = false;
    34     }
    35 
    36     public TextValue(string value) {
    37       this.value = value ?? string.Empty;
    38       this.readOnly = false;
    39     }
     31    public TextValue() : base() { }
     32    public TextValue(string value, bool @readonly = false) : base(value ?? string.Empty, @readonly) { }
    4033
    4134    [StorableConstructor]
    4235    protected TextValue(StorableConstructorFlag _) : base(_) { }
    4336
    44     protected TextValue(TextValue original, Cloner cloner)
    45       : base(original, cloner) {
    46       this.value = original.value ?? string.Empty;
    47       this.readOnly = original.readOnly;
    48     }
     37    protected TextValue(TextValue original, Cloner cloner) : base(original, cloner) { }
    4938
    5039    public override IDeepCloneable Clone(Cloner cloner) {
Note: See TracChangeset for help on using the changeset viewer.