Changeset 5215 for trunk/sources/HeuristicLab.Parameters
- Timestamp:
- 01/05/11 05:21:34 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Parameters/3.3/LookupParameter.cs
r5193 r5215 38 38 set { 39 39 if (value == null) throw new ArgumentNullException(); 40 if (!actualName.Equals(value)) { 40 if (string.IsNullOrWhiteSpace(value)) { 41 actualName = Name; 42 OnActualNameChanged(); 43 } else if (!actualName.Equals(value)) { 41 44 actualName = value; 42 45 OnActualNameChanged(); … … 76 79 public LookupParameter(string name, string description, string actualName) 77 80 : base(name, description, typeof(T)) { 78 this.actualName = actualName == null ? string.Empty: actualName;81 this.actualName = string.IsNullOrWhiteSpace(actualName) ? Name : actualName; 79 82 } 80 83
Note: See TracChangeset
for help on using the changeset viewer.