Changeset 2694 for trunk/sources/HeuristicLab.Data/3.3/StringData.cs
- Timestamp:
- 01/28/10 05:19:03 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data/3.3/StringData.cs
r2684 r2694 64 64 65 65 #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 } 68 74 } 69 75 string IStringConvertibleData.GetValue() { … … 71 77 } 72 78 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 } 75 85 } 76 86 #endregion
Note: See TracChangeset
for help on using the changeset viewer.