Changeset 8256
- Timestamp:
- 07/08/12 02:26:59 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators/3.3/DataReducer.cs
r8252 r8256 109 109 break; 110 110 default: 111 throw new InvalidOperationException(string.Format("Operation {0} is not supported as ReductionOperation for type: {1}.", ReductionOperation.Value.Value, t ypeof(IntValue)));111 throw new InvalidOperationException(string.Format("Operation {0} is not supported as ReductionOperation for type: {1}.", ReductionOperation.Value.Value, targetType)); 112 112 } 113 113 … … 139 139 break; 140 140 default: 141 throw new InvalidOperationException(string.Format("Operation {0} is not supported as TargetOperation for type: {1}.", TargetOperation.Value.Value, typeof(IntValue))); 142 } 143 } 144 #endregion 145 141 throw new InvalidOperationException(string.Format("Operation {0} is not supported as TargetOperation for type: {1}.", TargetOperation.Value.Value, targetType)); 142 } 143 } 144 #endregion 146 145 #region double reduction 147 146 private void CalculateResult(IEnumerable<double> values, Type targetType) { … … 170 169 break; 171 170 default: 172 throw new InvalidOperationException(string.Format("Operation {0} is not supported as ReductionOperation for type: {1}.", ReductionOperation.Value.Value, t ypeof(DoubleValue)));171 throw new InvalidOperationException(string.Format("Operation {0} is not supported as ReductionOperation for type: {1}.", ReductionOperation.Value.Value, targetType)); 173 172 } 174 173 … … 200 199 break; 201 200 default: 202 throw new InvalidOperationException(string.Format("Operation {0} is not supported as TargetOperation for type: {1}.", TargetOperation.Value.Value, typeof(DoubleValue))); 203 } 204 } 205 #endregion 206 201 throw new InvalidOperationException(string.Format("Operation {0} is not supported as TargetOperation for type: {1}.", TargetOperation.Value.Value, targetType)); 202 } 203 } 204 #endregion 207 205 #region TimeSpan reduction 208 206 private void CalculateResult(IEnumerable<TimeSpan> values, Type targetType) { … … 225 223 break; 226 224 default: 227 throw new InvalidOperationException(string.Format("Operation {0} is not supported as ReductionOperation for type: {1}.", ReductionOperation.Value.Value, t ypeof(TimeSpanValue)));225 throw new InvalidOperationException(string.Format("Operation {0} is not supported as ReductionOperation for type: {1}.", ReductionOperation.Value.Value, targetType)); 228 226 } 229 227 … … 251 249 break; 252 250 default: 253 throw new InvalidOperationException(string.Format("Operation {0} is not supported as TargetOperation for type: {1}.", TargetOperation.Value.Value, t ypeof(TimeSpanValue)));251 throw new InvalidOperationException(string.Format("Operation {0} is not supported as TargetOperation for type: {1}.", TargetOperation.Value.Value, targetType)); 254 252 } 255 253 }
Note: See TracChangeset
for help on using the changeset viewer.