SqlInt16
A structure that represents a 16-bit signed integer that can contain
a value ranging from 215 (-32,768) to
215-1 (32,767). It maps to the SQL Server
smallint
data type.
public struct SqlInt16 : INullable, IComparable { // Public Constructors public SqlInt16(shortvalue
); // Public Static Fields public static readonly SqlInt16 MaxValue; // =32767 public static readonly SqlInt16 MinValue; // =-32768 public static readonly SqlInt16 Null; // =Null public static readonly SqlInt16 Zero; // =0 // Public Instance Properties public bool IsNull{get; } // implements INullable public short Value{get; } // Public Static Methods public static SqlInt16 Add(SqlInt16x
, SqlInt16y
); public static SqlInt16 BitwiseAnd(SqlInt16x
, SqlInt16y
); public static SqlInt16 BitwiseOr(SqlInt16x
, SqlInt16y
); public static SqlInt16 Divide(SqlInt16x
, SqlInt16y
); public static SqlBoolean Equals(SqlInt16x
, SqlInt16y
); public static SqlBoolean GreaterThan(SqlInt16x
, SqlInt16y
); public static SqlBoolean GreaterThanOrEqual(SqlInt16x
, SqlInt16y
); public static SqlBoolean LessThan(SqlInt16x
, SqlInt16y
); public static SqlBoolean LessThanOrEqual(SqlInt16x
, SqlInt16y
); public static SqlInt16 Mod(SqlInt16x
, SqlInt16y
); public static SqlInt16 Multiply(SqlInt16x
, SqlInt16y
); public static SqlBoolean NotEquals(SqlInt16x
, SqlInt16y
); public static SqlInt16 OnesComplement(SqlInt16x
); public static SqlInt16 operator &(SqlInt16x
, SqlInt16y
); public static SqlInt16 operator |(SqlInt16x
, SqlInt16y
); public static SqlInt16 operator ^(SqlInt16x
, SqlInt16y
); public static SqlInt16 operator ~(SqlInt16x
); public static SqlInt16 Parse(strings
); public static SqlInt16 Subtract(SqlInt16x
, SqlInt16y
); public static SqlInt16 Xor(SqlInt16x
, SqlInt16y
); public static SqlInt16 operator %(SqlInt16x
, SqlInt16y
); public static SqlInt16 operator *(SqlInt16x
, SqlInt16y
); public static SqlInt16 operator /(SqlInt16x
, SqlInt16y
); public static SqlInt16 operator -(SqlInt16x
); public static SqlInt16 operator -(SqlInt16x
, SqlInt16y
); public static SqlInt16 operator +(SqlInt16x
, SqlInt16y
); public static SqlBoolean operator !=(SqlInt16x
, SqlInt16y
); public static SqlBoolean operator <(SqlInt16x
, SqlInt16y
); public static SqlBoolean operator <=(SqlInt16x
, SqlInt16y
); public static SqlBoolean operator ==(SqlInt16x
, SqlInt16y
); public static SqlBoolean operator >(SqlInt16x
, SqlInt16y
); public static SqlBoolean operator >=(SqlInt16x
, SqlInt16y
); public static explicit operator short(SqlInt16x
); public static explicit operator SqlInt16(SqlBooleanx
); public static explicit operator SqlInt16(SqlDecimalx
); public static explicit operator SqlInt16(SqlDoublex
); public static explicit operator SqlInt16(SqlInt32x
); public static explicit operator SqlInt16(SqlInt64x
); public static explicit operator SqlInt16(SqlMoneyx
); public static explicit operator SqlInt16(SqlSinglex
); public static explicit operator SqlInt16(SqlStringx
); public static implicit operator SqlInt16(shortx
); public static implicit operator SqlInt16(SqlBytex
); // Public Instance Methods public int CompareTo(objectvalue
); // implements IComparable public override bool Equals(objectvalue
); // overrides ValueType public override int GetHashCode( ); // overrides ValueType public SqlBoolean ToSqlBoolean( ); public SqlByte ToSqlByte( ); public SqlDecimal ToSqlDecimal( ); public SqlDouble ToSqlDouble( ); public SqlInt32 ToSqlInt32( ); public SqlInt64 ToSqlInt64( ); public SqlMoney ToSqlMoney( ); public SqlSingle ToSqlSingle( ); public SqlString ToSqlString( ); public override string ToString( ); // overrides ValueType }