private static bool IsAbove(object input, DoubleLimits limitValue) { bool value = limitValue.Max != null; bool check = value && (double)input > limitValue.Max; return(check); }
private static bool IsBelow(object input, DoubleLimits limitValue) { bool value = limitValue.Min != null; bool check = value && (double)input < limitValue.Min; return(check); }