Example #1
0
 private void ValidatePointOnSurfaceLine(RoundedDouble newLocalXCoordinate)
 {
     if (!surfaceLine.ValidateInRange(newLocalXCoordinate))
     {
         var    validityRange     = new Range <double>(surfaceLine.LocalGeometry.First().X, surfaceLine.LocalGeometry.Last().X);
         string outOfRangeMessage = string.Format(Resources.PipingInput_ValidatePointOnSurfaceLine_Length_must_be_in_Range_0_,
                                                  validityRange.ToString(FormattableConstants.ShowAtLeastOneDecimal, CultureInfo.CurrentCulture));
         throw new ArgumentOutOfRangeException(null, outOfRangeMessage);
     }
 }