Changeset 10352 for branches/2135-PercentValue
- Timestamp:
- 01/17/14 12:32:03 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2135-PercentValue/3.3/PercentValue.cs
r10327 r10352 39 39 set { 40 40 if (restrictToUnitInterval && (value < 0 || value > 1)) 41 throw new ArgumentException( string.Format("The provided value {0} lies not in the interval [0,1].", value));41 throw new ArgumentException("The provided value must lie in the interval [0,1]."); 42 42 base.Value = value; 43 43 } … … 57 57 this.restrictToUnitInterval = restrictToUnitInterval; 58 58 if (restrictToUnitInterval && (value < 0 || value > 1)) 59 throw new ArgumentException( string.Format("The provided value {0} lies not in the interval [0,1].", value));59 throw new ArgumentException("The provided value must lie in the interval [0,1]."); 60 60 this.value = value; 61 61 } … … 76 76 double val = double.Parse(value); 77 77 if (val < 0 || val > 1) { 78 errorMessage = " Value must lie in the interval [0,1].";78 errorMessage = "The provided value must lie in the interval [0,1]."; 79 79 return false; 80 80 }
Note: See TracChangeset
for help on using the changeset viewer.