fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (8)
522internal static SqlInt16 GetSqlInt16( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal, SmiMetaData metaData ) {
523SqlInt16 result;
526result = SqlInt16.Null;
538result = (SqlInt16) obj;
1100SqlInt16.Null, // SqlDbType.SmallInt
1510internal static void SetSqlInt16( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, SqlInt16 value ) {
1622case ExtendedClrTypeCode.SqlInt16: SetSqlInt16_Unchecked( sink, setters, ordinal, (SqlInt16) value ); break;
3518private static void SetSqlInt16_Unchecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SqlInt16 value ) {
fx\src\data\System\Data\SqlClient\SqlEnums.cs (6)
320else if (dataType == typeof(SqlInt16))
396else if (sqlType == typeof(SqlInt16)) return SqlInt16.Null;
444else if (sqlVal is SqlInt16)
445comVal = ((SqlInt16)sqlVal).Value;
746(5, 255, 2, true, false, false, TdsEnums.SQLINT2, TdsEnums.SQLINTN, MetaTypeName.SMALLINT, typeof(System.Int16), typeof(SqlInt16), SqlDbType.SmallInt, DbType.Int16, 0);
fx\src\data\System\Data\SQLTypes\SQLInt16.cs (107)
93public static implicit operator SqlInt16(short x) {
101public static explicit operator short(SqlInt16 x) {
115public static SqlInt16 Parse(String s) {
117return SqlInt16.Null;
127public static SqlInt16 operator -(SqlInt16 x) {
134public static SqlInt16 operator ~(SqlInt16 x) {
145public static SqlInt16 operator +(SqlInt16 x, SqlInt16 y) {
159public static SqlInt16 operator -(SqlInt16 x, SqlInt16 y) {
173public static SqlInt16 operator *(SqlInt16 x, SqlInt16 y) {
188public static SqlInt16 operator /(SqlInt16 x, SqlInt16 y) {
205public static SqlInt16 operator %(SqlInt16 x, SqlInt16 y) {
223public static SqlInt16 operator &(SqlInt16 x, SqlInt16 y) {
230public static SqlInt16 operator |(SqlInt16 x, SqlInt16 y) {
237public static SqlInt16 operator ^(SqlInt16 x, SqlInt16 y) {
249public static explicit operator SqlInt16(SqlBoolean x) {
257public static implicit operator SqlInt16(SqlByte x) {
267public static explicit operator SqlInt16(SqlInt32 x) {
282public static explicit operator SqlInt16(SqlInt64 x) {
297public static explicit operator SqlInt16(SqlSingle x) {
312public static explicit operator SqlInt16(SqlDouble x) {
327public static explicit operator SqlInt16(SqlMoney x) {
335public static explicit operator SqlInt16(SqlDecimal x) {
336return(SqlInt16)(SqlInt32)x;
343public static explicit operator SqlInt16(SqlString x) {
351public static SqlBoolean operator==(SqlInt16 x, SqlInt16 y) {
358public static SqlBoolean operator!=(SqlInt16 x, SqlInt16 y) {
365public static SqlBoolean operator<(SqlInt16 x, SqlInt16 y) {
372public static SqlBoolean operator>(SqlInt16 x, SqlInt16 y) {
379public static SqlBoolean operator<=(SqlInt16 x, SqlInt16 y) {
386public static SqlBoolean operator>=(SqlInt16 x, SqlInt16 y) {
395public static SqlInt16 OnesComplement(SqlInt16 x) {
400public static SqlInt16 Add(SqlInt16 x, SqlInt16 y) {
404public static SqlInt16 Subtract(SqlInt16 x, SqlInt16 y) {
409public static SqlInt16 Multiply(SqlInt16 x, SqlInt16 y) {
414public static SqlInt16 Divide(SqlInt16 x, SqlInt16 y) {
419public static SqlInt16 Mod(SqlInt16 x, SqlInt16 y) {
423public static SqlInt16 Modulus(SqlInt16 x, SqlInt16 y) {
428public static SqlInt16 BitwiseAnd(SqlInt16 x, SqlInt16 y) {
433public static SqlInt16 BitwiseOr(SqlInt16 x, SqlInt16 y) {
438public static SqlInt16 Xor(SqlInt16 x, SqlInt16 y) {
443public static SqlBoolean Equals(SqlInt16 x, SqlInt16 y) {
448public static SqlBoolean NotEquals(SqlInt16 x, SqlInt16 y) {
453public static SqlBoolean LessThan(SqlInt16 x, SqlInt16 y) {
458public static SqlBoolean GreaterThan(SqlInt16 x, SqlInt16 y) {
463public static SqlBoolean LessThanOrEqual(SqlInt16 x, SqlInt16 y) {
468public static SqlBoolean GreaterThanOrEqual(SqlInt16 x, SqlInt16 y) {
523if (value is SqlInt16) {
524SqlInt16 i = (SqlInt16)value;
528throw ADP.WrongType(value.GetType(), typeof(SqlInt16));
531public int CompareTo(SqlInt16 value) {
549if (!(value is SqlInt16)) {
553SqlInt16 i = (SqlInt16)value;
612public static readonly SqlInt16 Null = new SqlInt16(true);
616public static readonly SqlInt16 Zero = new SqlInt16(0);
620public static readonly SqlInt16 MinValue = new SqlInt16(Int16.MinValue);
624public static readonly SqlInt16 MaxValue = new SqlInt16(Int16.MaxValue);