System.Data.ExprException.UnsupportedDataType C# (CSharp) Метод

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

public static UnsupportedDataType ( Type type ) : Exception
type Type
Результат Exception
        public static Exception UnsupportedDataType(Type type)
        {
            return ExceptionBuilder._Argument(SR.Format(SR.Expr_UnsupportedType, type.FullName));
        }
    }

Usage Example

        internal DataExpression(DataTable table, string expression, Type type)
        {
            ExpressionParser parser = new ExpressionParser(table);

            parser.LoadExpression(expression);

            _originalExpression = expression;
            _expr = null;

            if (expression != null)
            {
                _storageType = DataStorage.GetStorageType(type);
                if (_storageType == StorageType.BigInteger)
                {
                    throw ExprException.UnsupportedDataType(type);
                }

                _dataType = type;
                _expr     = parser.Parse();
                _parsed   = true;
                if (_expr != null && table != null)
                {
                    Bind(table);
                }
                else
                {
                    _bound = false;
                }
            }
        }
All Usage Examples Of System.Data.ExprException::UnsupportedDataType