24 instantiations of SqlByte
System.Data.Common (24)
System\Data\Common\SQLConvert.cs (1)
573return new SqlByte(XmlConvert.ToByte((string)value));
System\Data\SQLTypes\SQLByte.cs (23)
63return new SqlByte(x); 82return new SqlByte(byte.Parse(s, null)); 88return x.IsNull ? Null : new SqlByte(unchecked((byte)~x.m_value)); 104return new SqlByte((byte)iResult); 116return new SqlByte((byte)iResult); 128return new SqlByte((byte)iResult); 138return new SqlByte((byte)(x.m_value / y.m_value)); 151return new SqlByte((byte)(x.m_value % y.m_value)); 160return (x.IsNull || y.IsNull) ? Null : new SqlByte((byte)(x.m_value & y.m_value)); 165return (x.IsNull || y.IsNull) ? Null : new SqlByte((byte)(x.m_value | y.m_value)); 170return (x.IsNull || y.IsNull) ? Null : new SqlByte((byte)(x.m_value ^ y.m_value)); 180return x.IsNull ? Null : new SqlByte(x.ByteValue); 189return x.IsNull ? Null : new SqlByte(checked((byte)x.ToInt32())); 201return x.IsNull ? Null : new SqlByte((byte)(x.Value)); 213return x.IsNull ? Null : new SqlByte((byte)(x.Value)); 225return x.IsNull ? Null : new SqlByte((byte)(x.Value)); 237return x.IsNull ? Null : new SqlByte((byte)(x.Value)); 249return x.IsNull ? Null : new SqlByte((byte)(x.Value)); 262return x.IsNull ? Null : new SqlByte(byte.Parse(x.Value, null)); 523public static readonly SqlByte Null = new SqlByte(true); 524public static readonly SqlByte Zero = new SqlByte(0); 525public static readonly SqlByte MinValue = new SqlByte(byte.MinValue); 526public static readonly SqlByte MaxValue = new SqlByte(byte.MaxValue);
168 references to SqlByte
netstandard (1)
netstandard.cs (1)
575[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlTypes.SqlByte))]
System.Data (1)
src\libraries\shims\System.Data\ref\System.Data.cs (1)
231[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlTypes.SqlByte))]
System.Data.Common (166)
System\Data\ColumnTypeConverter.cs (1)
47typeof(SqlByte),
System\Data\Common\DataStorage.cs (1)
97typeof(SqlByte),
System\Data\Common\SQLConvert.cs (12)
12public static SqlByte ConvertToSqlByte(object value) 17return SqlByte.Null; 24StorageType.SqlByte => (SqlByte)value, 26_ => throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlByte)), 43StorageType.SqlByte => (SqlByte)value, 65StorageType.SqlByte => (SqlByte)value, 91StorageType.SqlByte => (SqlByte)value, 120StorageType.SqlByte => (SqlByte)value, 153StorageType.SqlByte => (SqlByte)value, 183StorageType.SqlByte => (SqlByte)value, 214StorageType.SqlByte => (SqlByte)value, 661return XmlConvert.ToString(((SqlByte)value).Value);
System\Data\Common\SQLTypes\SQLByteStorage.cs (20)
16private SqlByte[] _values = default!; // Late-initialized 19: base(column, typeof(SqlByte), SqlByte.Null, SqlByte.Null, StorageType.SqlByte) 58SqlByte mean = 0; 104SqlByte min = SqlByte.MaxValue; 110if ((SqlByte.LessThan(_values[record], min)).IsTrue) 121SqlByte max = SqlByte.MinValue; 127if ((SqlByte.GreaterThan(_values[record], max)).IsTrue) 156throw ExprException.Overflow(typeof(SqlByte)); 169return _values[recordNo].CompareTo((SqlByte)value); 211SqlByte newValue = default; 221return ((SqlByte)tmp); 229Debug.Assert((value.GetType() == typeof(SqlByte)), "wrong input type"); 242return new SqlByte[recordCount]; 247SqlByte[] typedStore = (SqlByte[])store; 254_values = (SqlByte[])store;
System\Data\SQLTypes\SQLBoolean.cs (3)
236public static explicit operator SqlBoolean(SqlByte x) 388public SqlByte ToSqlByte() 390return (SqlByte)this;
System\Data\SQLTypes\SQLByte.cs (103)
21public struct SqlByte : INullable, IComparable, IXmlSerializable, IEquatable<SqlByte> 61public static implicit operator SqlByte(byte x) 67public static explicit operator byte(SqlByte x) 77public static SqlByte Parse(string s) 80return SqlByte.Null; 86public static SqlByte operator ~(SqlByte x) 95public static SqlByte operator +(SqlByte x, SqlByte y) 107public static SqlByte operator -(SqlByte x, SqlByte y) 119public static SqlByte operator *(SqlByte x, SqlByte y) 131public static SqlByte operator /(SqlByte x, SqlByte y) 144public static SqlByte operator %(SqlByte x, SqlByte y) 158public static SqlByte operator &(SqlByte x, SqlByte y) 163public static SqlByte operator |(SqlByte x, SqlByte y) 168public static SqlByte operator ^(SqlByte x, SqlByte y) 178public static explicit operator SqlByte(SqlBoolean x) 187public static explicit operator SqlByte(SqlMoney x) 193public static explicit operator SqlByte(SqlInt16 x) 205public static explicit operator SqlByte(SqlInt32 x) 217public static explicit operator SqlByte(SqlInt64 x) 229public static explicit operator SqlByte(SqlSingle x) 241public static explicit operator SqlByte(SqlDouble x) 253public static explicit operator SqlByte(SqlDecimal x) 255return (SqlByte)(SqlInt32)x; 260public static explicit operator SqlByte(SqlString x) 266public static SqlBoolean operator ==(SqlByte x, SqlByte y) 271public static SqlBoolean operator !=(SqlByte x, SqlByte y) 276public static SqlBoolean operator <(SqlByte x, SqlByte y) 281public static SqlBoolean operator >(SqlByte x, SqlByte y) 286public static SqlBoolean operator <=(SqlByte x, SqlByte y) 291public static SqlBoolean operator >=(SqlByte x, SqlByte y) 301public static SqlByte OnesComplement(SqlByte x) 307public static SqlByte Add(SqlByte x, SqlByte y) 313public static SqlByte Subtract(SqlByte x, SqlByte y) 319public static SqlByte Multiply(SqlByte x, SqlByte y) 325public static SqlByte Divide(SqlByte x, SqlByte y) 331public static SqlByte Mod(SqlByte x, SqlByte y) 336public static SqlByte Modulus(SqlByte x, SqlByte y) 342public static SqlByte BitwiseAnd(SqlByte x, SqlByte y) 348public static SqlByte BitwiseOr(SqlByte x, SqlByte y) 354public static SqlByte Xor(SqlByte x, SqlByte y) 360public static SqlBoolean Equals(SqlByte x, SqlByte y) 366public static SqlBoolean NotEquals(SqlByte x, SqlByte y) 372public static SqlBoolean LessThan(SqlByte x, SqlByte y) 378public static SqlBoolean GreaterThan(SqlByte x, SqlByte y) 384public static SqlBoolean LessThanOrEqual(SqlByte x, SqlByte y) 390public static SqlBoolean GreaterThanOrEqual(SqlByte x, SqlByte y) 453if (value is SqlByte i) 457throw ADP.WrongType(value!.GetType(), typeof(SqlByte)); 460public int CompareTo(SqlByte value) 476value is SqlByte other && Equals(other); 481public bool Equals(SqlByte other) => 523public static readonly SqlByte Null = new SqlByte(true); 524public static readonly SqlByte Zero = new SqlByte(0); 525public static readonly SqlByte MinValue = new SqlByte(byte.MinValue); 526public static readonly SqlByte MaxValue = new SqlByte(byte.MaxValue);
System\Data\SQLTypes\SQLDecimal.cs (3)
1747public static implicit operator SqlDecimal(SqlByte x) 2976public SqlByte ToSqlByte() 2978return (SqlByte)this;
System\Data\SQLTypes\SQLDouble.cs (3)
166public static implicit operator SqlDouble(SqlByte x) 320public SqlByte ToSqlByte() 322return (SqlByte)this;
System\Data\SQLTypes\SQLInt16.cs (3)
192public static implicit operator SqlInt16(SqlByte x) 405public SqlByte ToSqlByte() 407return (SqlByte)this;
System\Data\SQLTypes\SQLInt32.cs (3)
195public static implicit operator SqlInt32(SqlByte x) 420public SqlByte ToSqlByte() 422return (SqlByte)this;
System\Data\SQLTypes\SQLInt64.cs (3)
244public static implicit operator SqlInt64(SqlByte x) 479public SqlByte ToSqlByte() 481return (SqlByte)this;
System\Data\SQLTypes\SQLMoney.cs (3)
317public static implicit operator SqlMoney(SqlByte x) 473public SqlByte ToSqlByte() 475return (SqlByte)this;
System\Data\SQLTypes\SQLSingle.cs (3)
169public static implicit operator SqlSingle(SqlByte x) 329public SqlByte ToSqlByte() 331return (SqlByte)this;
System\Data\SQLTypes\SQLString.cs (3)
464public static explicit operator SqlString(SqlByte x) 623public SqlByte ToSqlByte() 625return (SqlByte)this;
System\Data\TypeLimiter.cs (1)
153typeof(SqlByte),
System\Data\xmlsaver.cs (1)
249if (type == typeof(sbyte) || type == typeof(SqlByte))