Beispiel #1
0
 // Alternative method for operator <=
 public static SqlBoolean LessThanOrEqual(SqlInt16 x, SqlInt16 y)
 {
     return(x <= y);
 }
Beispiel #2
0
 // Alternative method for operator >=
 public static SqlBoolean GreaterThanOrEqual(SqlInt16 x, SqlInt16 y)
 {
     return(x >= y);
 }
Beispiel #3
0
 // Alternative method for operator <
 public static SqlBoolean LessThan(SqlInt16 x, SqlInt16 y)
 {
     return(x < y);
 }
Beispiel #4
0
 // Alternative method for operator >
 public static SqlBoolean GreaterThan(SqlInt16 x, SqlInt16 y)
 {
     return(x > y);
 }
Beispiel #5
0
 // Alternative method for operator ==
 public static SqlBoolean Equals(SqlInt16 x, SqlInt16 y)
 {
     return(x == y);
 }
Beispiel #6
0
 // Alternative method for operator !=
 public static SqlBoolean NotEquals(SqlInt16 x, SqlInt16 y)
 {
     return(x != y);
 }
Beispiel #7
0
 // Alternative method for operator |
 public static SqlInt16 BitwiseOr(SqlInt16 x, SqlInt16 y)
 {
     return(x | y);
 }
Beispiel #8
0
 // Alternative method for operator ^
 public static SqlInt16 Xor(SqlInt16 x, SqlInt16 y)
 {
     return(x ^ y);
 }
Beispiel #9
0
 public static SqlInt16 Modulus(SqlInt16 x, SqlInt16 y)
 {
     return(x % y);
 }
Beispiel #10
0
 // Alternative method for operator &
 public static SqlInt16 BitwiseAnd(SqlInt16 x, SqlInt16 y)
 {
     return(x & y);
 }
Beispiel #11
0
 // Alternative method for operator /
 public static SqlInt16 Divide(SqlInt16 x, SqlInt16 y)
 {
     return(x / y);
 }
Beispiel #12
0
 // Alternative method for operator *
 public static SqlInt16 Multiply(SqlInt16 x, SqlInt16 y)
 {
     return(x * y);
 }
Beispiel #13
0
 // Alternative method for operator -
 public static SqlInt16 Subtract(SqlInt16 x, SqlInt16 y)
 {
     return(x - y);
 }
Beispiel #14
0
 // Alternative method for operator +
 public static SqlInt16 Add(SqlInt16 x, SqlInt16 y)
 {
     return(x + y);
 }
Beispiel #15
0
        //--------------------------------------------------
        // Alternative methods for overloaded operators
        //--------------------------------------------------

        // Alternative method for operator ~
        public static SqlInt16 OnesComplement(SqlInt16 x)
        {
            return(~x);
        }