29 instantiations of SqlByte
System.Data (29)
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (2)
340return new SqlByte( GetByte_Unchecked( sink, getters, ordinal ) ); 1056result = new SqlByte( GetByte_Unchecked( sink, getters, ordinal ) );
fx\src\data\System\Data\Common\SQLConvert.cs (1)
628return new SqlByte(XmlConvert.ToByte((string)value));
fx\src\data\System\Data\Common\SQLTypes\SQLByteStorage.cs (1)
190SqlByte newValue = new SqlByte();
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (1)
460return new SqlByte(_value._byte);
fx\src\data\System\Data\SqlClient\SqlEnums.cs (1)
511sqlVal = new SqlByte((byte)comVal);
fx\src\data\System\Data\SQLTypes\SQLByte.cs (23)
95return new SqlByte(x); 120return new SqlByte(Byte.Parse(s, (IFormatProvider)null)); 128return x.IsNull ? Null : new SqlByte((byte)~x.m_value); 146return new SqlByte((byte)iResult); 160return new SqlByte((byte)iResult); 174return new SqlByte((byte)iResult); 185return new SqlByte((byte)(x.m_value / y.m_value)); 199return new SqlByte((byte)(x.m_value % y.m_value)); 210return(x.IsNull || y.IsNull) ? Null : new SqlByte((byte)(x.m_value & y.m_value)); 217return(x.IsNull || y.IsNull) ? Null : new SqlByte((byte)(x.m_value | y.m_value)); 224return(x.IsNull || y.IsNull) ? Null : new SqlByte((byte)(x.m_value ^ y.m_value)); 236return x.IsNull ? Null : new SqlByte((byte)(x.ByteValue)); 247return x.IsNull ? Null : new SqlByte(checked((byte)x.ToInt32())); 261return x.IsNull ? Null : new SqlByte((byte)(x.Value)); 275return x.IsNull ? Null : new SqlByte((byte)(x.Value)); 289return x.IsNull ? Null : new SqlByte((byte)(x.Value)); 303return x.IsNull ? Null : new SqlByte((byte)(x.Value)); 317return x.IsNull ? Null : new SqlByte((byte)(x.Value)); 334return x.IsNull ? Null : new SqlByte(Byte.Parse(x.Value, (IFormatProvider)null)); 603public static readonly SqlByte Null = new SqlByte(true); 607public static readonly SqlByte Zero = new SqlByte(0); 611public static readonly SqlByte MinValue = new SqlByte(Byte.MinValue); 615public static readonly SqlByte MaxValue = new SqlByte(Byte.MaxValue);
206 references to SqlByte
System.Data (206)
fx\src\data\Microsoft\SqlServer\Server\ITypedGetters.cs (1)
55SqlByte GetSqlByte( int ordinal );
fx\src\data\Microsoft\SqlServer\Server\ITypedSetters.cs (1)
54void SetSqlByte( int ordinal, SqlByte value );
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (2)
116ht.Add( typeof( SqlByte ), ExtendedClrTypeCode.SqlByte ); 328else if (value.GetType() == typeof( SqlByte ))
fx\src\data\Microsoft\SqlServer\Server\SmiRecordBuffer.cs (2)
262public virtual SqlByte GetSqlByte( int ordinal ) { 615public virtual void SetSqlByte( int ordinal, SqlByte value ) {
fx\src\data\Microsoft\SqlServer\Server\SmiRequestExecutor.cs (2)
320public virtual SqlByte GetSqlByte( int ordinal ) { 673public virtual void SetSqlByte( int ordinal, SqlByte value ) {
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (2)
293public virtual SqlByte GetSqlByte(int ordinal) { 498public virtual void SetSqlByte(int ordinal, SqlByte value) {
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (7)
335internal static SqlByte GetSqlByte( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal, SmiMetaData metaData ) { 338return SqlByte.Null; 346return (SqlByte) result; 1104SqlByte.Null, // SqlDbType.TinyInt 1469internal static void SetSqlByte( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, SqlByte value ) { 1618case ExtendedClrTypeCode.SqlByte: SetSqlByte_Unchecked( sink, setters, ordinal, (SqlByte) value ); break; 3397private static void SetSqlByte_Unchecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SqlByte value ) {
fx\src\data\System\Data\ColumnTypeConverter.cs (1)
53typeof(SqlByte),
fx\src\data\System\Data\Common\DataStorage.cs (1)
101typeof(SqlByte),
fx\src\data\System\Data\Common\SQLConvert.cs (12)
18public static SqlByte ConvertToSqlByte(object value) { 21return SqlByte.Null; 28return (SqlByte)value; 32throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlByte)); 49return (SqlByte) value; 76return (SqlByte)value; 110return (SqlByte)value; 150return (SqlByte)value; 198return (SqlByte)value; 240return (SqlByte)value; 284return (SqlByte)value; 717return XmlConvert.ToString(((SqlByte)value).Value);
fx\src\data\System\Data\Common\SQLTypes\SQLByteStorage.cs (22)
22private SqlByte[] values; 25: base(column, typeof(SqlByte), SqlByte.Null, SqlByte.Null, StorageType.SqlByte) { 56SqlByte mean = 0; 99SqlByte min = SqlByte.MaxValue; 104if ((SqlByte.LessThan(values[record], min)).IsTrue) 114SqlByte max = SqlByte.MinValue; 119if ((SqlByte.GreaterThan(values[record], max)).IsTrue) 144throw ExprException.Overflow(typeof(SqlByte)); 154return values[recordNo].CompareTo((SqlByte)value); 182SqlByte[] newValues = new SqlByte[capacity]; 190SqlByte newValue = new SqlByte(); 199return ((SqlByte)tmp); 204Debug.Assert((value.GetType() == typeof(SqlByte)), "wrong input type"); 215return new SqlByte[recordCount]; 219SqlByte[] typedStore = (SqlByte[]) store; 225values = (SqlByte[]) store;
fx\src\data\System\Data\Filter\BinaryNode.cs (1)
797value = (SqlByte) res.ToSqlByte();
fx\src\data\System\Data\Sql\SqlMetaData.cs (5)
806public SqlByte Adjust(SqlByte value) { 1080else if (dataType == typeof(SqlByte)) 1081value = this.Adjust((SqlByte)value); 1209else if (dataType == typeof(SqlByte))
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (4)
454internal SqlByte SqlByte { 458return SqlByte.Null; 462return (SqlByte)this.SqlValue; // anything else we haven't thought of goes through boxing. 743case SqlBuffer.StorageType.Byte: return typeof(SqlByte);
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
2294virtual public SqlByte GetSqlByte(int i) {
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (1)
738public override SqlByte GetSqlByte(int ordinal) {
fx\src\data\System\Data\SqlClient\SqlEnums.cs (6)
308else if (dataType == typeof(SqlByte)) 395else if (sqlType == typeof(SqlByte)) return SqlByte.Null; 442else if (sqlVal is SqlByte) 443comVal = ((SqlByte)sqlVal).Value; 743(3, 255, 1, true, false, false, TdsEnums.SQLINT1, TdsEnums.SQLINTN, MetaTypeName.TINYINT, typeof(System.Byte), typeof(SqlByte), SqlDbType.TinyInt, DbType.Byte, 0);
fx\src\data\System\Data\SqlClient\TdsParser.cs (2)
10006stateObj.WriteByte(((SqlByte)value).Value); 10966return SerializeLong(((SqlByte)value).Value, stateObj);
fx\src\data\System\Data\SQLTypes\SQLBoolean.cs (3)
296public static explicit operator SqlBoolean(SqlByte x) { 465public SqlByte ToSqlByte() { 466return (SqlByte)this;
fx\src\data\System\Data\SQLTypes\SQLByte.cs (105)
94public static implicit operator SqlByte(byte x) { 102public static explicit operator byte(SqlByte x) { 116public static SqlByte Parse(String s) { 118return SqlByte.Null; 127public static SqlByte operator ~(SqlByte x) { 138public static SqlByte operator +(SqlByte x, SqlByte y) { 152public static SqlByte operator -(SqlByte x, SqlByte y) { 166public static SqlByte operator *(SqlByte x, SqlByte y) { 180public static SqlByte operator /(SqlByte x, SqlByte y) { 194public static SqlByte operator %(SqlByte x, SqlByte y) { 209public static SqlByte operator &(SqlByte x, SqlByte y) { 216public static SqlByte operator |(SqlByte x, SqlByte y) { 223public static SqlByte operator ^(SqlByte x, SqlByte y) { 235public static explicit operator SqlByte(SqlBoolean x) { 246public static explicit operator SqlByte(SqlMoney x) { 254public static explicit operator SqlByte(SqlInt16 x) { 268public static explicit operator SqlByte(SqlInt32 x) { 282public static explicit operator SqlByte(SqlInt64 x) { 296public static explicit operator SqlByte(SqlSingle x) { 310public static explicit operator SqlByte(SqlDouble x) { 324public static explicit operator SqlByte(SqlDecimal x) { 325return(SqlByte)(SqlInt32)x; 333public static explicit operator SqlByte(SqlString x) { 341public static SqlBoolean operator==(SqlByte x, SqlByte y) { 348public static SqlBoolean operator!=(SqlByte x, SqlByte y) { 355public static SqlBoolean operator<(SqlByte x, SqlByte y) { 362public static SqlBoolean operator>(SqlByte x, SqlByte y) { 369public static SqlBoolean operator<=(SqlByte x, SqlByte y) { 376public static SqlBoolean operator>=(SqlByte x, SqlByte y) { 385public static SqlByte OnesComplement(SqlByte x) { 390public static SqlByte Add(SqlByte x, SqlByte y) { 395public static SqlByte Subtract(SqlByte x, SqlByte y) { 400public static SqlByte Multiply(SqlByte x, SqlByte y) { 405public static SqlByte Divide(SqlByte x, SqlByte y) { 410public static SqlByte Mod(SqlByte x, SqlByte y) { 414public static SqlByte Modulus(SqlByte x, SqlByte y) { 419public static SqlByte BitwiseAnd(SqlByte x, SqlByte y) { 424public static SqlByte BitwiseOr(SqlByte x, SqlByte y) { 429public static SqlByte Xor(SqlByte x, SqlByte y) { 434public static SqlBoolean Equals(SqlByte x, SqlByte y) { 439public static SqlBoolean NotEquals(SqlByte x, SqlByte y) { 444public static SqlBoolean LessThan(SqlByte x, SqlByte y) { 449public static SqlBoolean GreaterThan(SqlByte x, SqlByte y) { 454public static SqlBoolean LessThanOrEqual(SqlByte x, SqlByte y) { 459public static SqlBoolean GreaterThanOrEqual(SqlByte x, SqlByte y) { 514if (value is SqlByte) { 515SqlByte i = (SqlByte)value; 519throw ADP.WrongType(value.GetType(), typeof(SqlByte)); 522public int CompareTo(SqlByte value) { 540if (!(value is SqlByte)) { 544SqlByte i = (SqlByte)value; 603public static readonly SqlByte Null = new SqlByte(true); 607public static readonly SqlByte Zero = new SqlByte(0); 611public static readonly SqlByte MinValue = new SqlByte(Byte.MinValue); 615public static readonly SqlByte MaxValue = new SqlByte(Byte.MaxValue);
fx\src\data\System\Data\SQLTypes\SQLDecimal.cs (3)
1711public static implicit operator SqlDecimal(SqlByte x) { 2878public SqlByte ToSqlByte() { 2879return (SqlByte)this;
fx\src\data\System\Data\SQLTypes\SQLDouble.cs (3)
218public static implicit operator SqlDouble(SqlByte x) { 389public SqlByte ToSqlByte() { 390return (SqlByte)this;
fx\src\data\System\Data\SQLTypes\SQLInt16.cs (3)
257public static implicit operator SqlInt16(SqlByte x) { 478public SqlByte ToSqlByte() { 479return (SqlByte)this;
fx\src\data\System\Data\SQLTypes\SQLInt32.cs (3)
257public static implicit operator SqlInt32(SqlByte x) { 490public SqlByte ToSqlByte() { 491return (SqlByte)this;
fx\src\data\System\Data\SQLTypes\SQLInt64.cs (3)
303public static implicit operator SqlInt64(SqlByte x) { 545public SqlByte ToSqlByte() { 546return (SqlByte)this;
fx\src\data\System\Data\SQLTypes\SQLMoney.cs (3)
360public static implicit operator SqlMoney(SqlByte x) { 530public SqlByte ToSqlByte() { 531return (SqlByte)this;
fx\src\data\System\Data\SQLTypes\SQLSingle.cs (3)
220public static implicit operator SqlSingle(SqlByte x) { 394public SqlByte ToSqlByte() { 395return (SqlByte)this;
fx\src\data\System\Data\SQLTypes\SQLString.cs (3)
518public static explicit operator SqlString(SqlByte x) { 698public SqlByte ToSqlByte() { 699return (SqlByte)this;
fx\src\data\System\Data\xmlsaver.cs (1)
222if (type == typeof(SByte)|| type == typeof(SqlByte))