HttpServer.Check.Max C# (CSharp) Метод

Max() публичный статический Метод

Checks if the value is less or equal.
If contract fails.
public static Max ( System.DateTime max, System.DateTime value, string messageOrParamName ) : void
max System.DateTime max value.
value System.DateTime parameter value.
messageOrParamName string parameter name, or a error message.
Результат void
        public static void Max(DateTime max, DateTime value, string messageOrParamName)
        {
            if (value <= max)
                return;

            Throw(messageOrParamName, FieldMin, max.ToString());
        }

Same methods

Check::Max ( int max, int value, string messageOrParamName ) : void
Check::Max ( int max, string value, string messageOrParamName ) : void
Check::Max ( int max, string value, string messageOrParamName, bool required ) : void