System.Linq.Expressions.Error.ArgumentOutOfRange C# (CSharp) Method

ArgumentOutOfRange() static private method

The exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked method.
static private ArgumentOutOfRange ( string paramName ) : Exception
paramName string
return System.Exception
        internal static Exception ArgumentOutOfRange(string paramName)
        {
            return new ArgumentOutOfRangeException(paramName);
        }

Usage Example

Esempio n. 1
0
        internal override Expression GetExpression(int index)
        {
            switch (index)
            {
            case 0: return(ReturnObject <Expression>(_arg0));

            case 1: return(_arg1);

            case 2: return(_arg2);

            case 3: return(_arg3);

            default: throw Error.ArgumentOutOfRange("index");
            }
        }
All Usage Examples Of System.Linq.Expressions.Error::ArgumentOutOfRange
Error