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

    r17251 r17253  
    190190
    191191    public virtual ValueTypeMatrix<T> AsReadOnly() {
    192       if (readOnly) return this;
    193       var readOnlyValueTypeMatrix = (ValueTypeMatrix<T>)this.Clone();
    194       readOnlyValueTypeMatrix.readOnly = true;
    195       return readOnlyValueTypeMatrix;
     192      if (ReadOnly) return this;
     193      var clone = (ValueTypeMatrix<T>)this.Clone();
     194      clone.readOnly = true;
     195      return clone;
    196196    }
    197197
Note: See TracChangeset for help on using the changeset viewer.