Changeset 10405 for branches/2135-PercentValue
- Timestamp:
- 01/28/14 10:55:09 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2135-PercentValue/3.3/PercentValue.cs
r10352 r10405 39 39 set { 40 40 if (restrictToUnitInterval && (value < 0 || value > 1)) 41 throw new ArgumentException(" The provided value must lie in the interval [0,1].");41 throw new ArgumentException("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(" The provided value must lie in the interval [0,1].");59 throw new ArgumentException("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 = " The provided value must lie in the interval [0,1].";78 errorMessage = "Value must lie in the interval [0,1]."; 79 79 return false; 80 80 }
Note: See TracChangeset
for help on using the changeset viewer.