System.Data.ExprException.TypeMismatchInBinop C# (CSharp) Method

TypeMismatchInBinop() public static method

public static TypeMismatchInBinop ( int op, Type type1, Type type2 ) : Exception
op int
type1 Type
type2 Type
return Exception
        public static Exception TypeMismatchInBinop(int op, Type type1, Type type2)
        {
            return _Eval(SR.Format(SR.Expr_TypeMismatchInBinop, Operators.ToString(op), type1.ToString(), type2.ToString()));
        }

Usage Example

示例#1
0
 internal void SetTypeMismatchError(int op, Type left, Type right)
 {
     throw ExprException.TypeMismatchInBinop(op, left, right);
 }