Changeset 3688 for trunk/sources/HeuristicLab.Parameters
- Timestamp:
- 05/07/10 00:05:05 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Parameters/3.3
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Parameters/3.3/LookupParameter.cs
r3687 r3688 88 88 89 89 public override string ToString() { 90 return string.Format("{0}: {1}", Name, ActualName); 90 if (Name.Equals(ActualName)) 91 return Name; 92 else 93 return Name + ": " + ActualName; 91 94 } 92 95 -
trunk/sources/HeuristicLab.Parameters/3.3/OptionalConstrainedValueParameter.cs
r3555 r3688 130 130 131 131 public override string ToString() { 132 return string.Format("{0}: {1}", Name,Value != null ? Value.ToString() : "null");132 return Name + ": " + (Value != null ? Value.ToString() : "null"); 133 133 } 134 134 -
trunk/sources/HeuristicLab.Parameters/3.3/OptionalValueParameter.cs
r3555 r3688 101 101 102 102 public override string ToString() { 103 return string.Format("{0}: {1}", Name,Value != null ? Value.ToString() : "null");103 return Name + ": " + (Value != null ? Value.ToString() : "null"); 104 104 } 105 105 -
trunk/sources/HeuristicLab.Parameters/3.3/Parameter.cs
r3555 r3688 102 102 103 103 public override string ToString() { 104 return string.Format("{0}", Name);104 return Name; 105 105 } 106 106 -
trunk/sources/HeuristicLab.Parameters/3.3/ScopeParameter.cs
r3555 r3688 47 47 48 48 public override string ToString() { 49 return string.Format("{0}", Name);49 return Name; 50 50 } 51 51 -
trunk/sources/HeuristicLab.Parameters/3.3/ValueLookupParameter.cs
r3555 r3688 104 104 105 105 public override string ToString() { 106 return string.Format("{0}: {1}", Name, Value != null ? Value.ToString() : ActualName); 106 if (Value != null) 107 return Name + ": " + Value.ToString(); 108 else if (Name.Equals(ActualName)) 109 return Name; 110 else 111 return Name + ": " + ActualName; 107 112 } 108 113
Note: See TracChangeset
for help on using the changeset viewer.