Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/28/10 05:19:03 (15 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • finished implemented ideas which came up during yesterday's presentation of HeuristicLab.Core and related plugins
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Data/3.3/StringData.cs

    r2684 r2694  
    6464
    6565    #region IStringConvertibleData Members
    66     bool IStringConvertibleData.Validate(string value) {
    67       return true;
     66    bool IStringConvertibleData.Validate(string value, out string errorMessage) {
     67      if (value == null) {
     68        errorMessage = "Invalid Value (string must not be null)";
     69        return false;
     70      } else {
     71        errorMessage = string.Empty;
     72        return true;
     73      }
    6874    }
    6975    string IStringConvertibleData.GetValue() {
     
    7177    }
    7278    bool IStringConvertibleData.SetValue(string value) {
    73       Value = value != null ? value : string.Empty;
    74       return true;
     79      if (value != null) {
     80        Value = value;
     81        return true;
     82      } else {
     83        return false;
     84      }
    7585    }
    7686    #endregion
Note: See TracChangeset for help on using the changeset viewer.