public static void ValidateTargetSize(InputValue<double> targetSize) { if (targetSize.Actual < 0) throw new InputValueException(targetSize.String, "Target harvest size cannot be negative"); } }