public static void ValidateTargetSizes(
InputValue<double> minTargetSize,
InputValue<double> maxTargetSize) {
if (minTargetSize.Actual < 0)
throw new InputValueException(
minTargetSize.String,
"Min target harvest size cannot be negative");
if (maxTargetSize.Actual <= 0)
throw new InputValueException(maxTargetSize.String,
"Max target harvest size must be positive");
if (minTargetSize.Actual > maxTargetSize.Actual)
throw new InputValueException(minTargetSize.String + " " +
maxTargetSize.String,
"Max target harvest size cannot be greater than min.");
}