25 instantiations of SqlDouble
System.Data (25)
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (2)
486result = new SqlDouble( temp ); 1014result = new SqlDouble( GetDouble_Unchecked( sink, getters, ordinal ) );
fx\src\data\System\Data\Common\SQLConvert.cs (1)
638return new SqlDouble(XmlConvert.ToDouble((string)value));
fx\src\data\System\Data\Common\SQLTypes\SQLDoubleStorage.cs (1)
189SqlDouble newValue = new SqlDouble();
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (1)
539return new SqlDouble(_value._double);
fx\src\data\System\Data\SqlClient\SqlEnums.cs (1)
499sqlVal = new SqlDouble((double)comVal);
fx\src\data\System\Data\SQLTypes\SQLDouble.cs (19)
98return new SqlDouble(x); 123return new SqlDouble(Double.Parse(s, CultureInfo.InvariantCulture)); 132return x.IsNull ? Null : new SqlDouble(-x.m_value); 151return new SqlDouble(value); 166return new SqlDouble(value); 181return new SqlDouble(value); 199return new SqlDouble(value); 211return x.IsNull ? Null : new SqlDouble((double)(x.ByteValue)); 219return x.IsNull ? Null : new SqlDouble((double)(x.Value)); 227return x.IsNull ? Null : new SqlDouble((double)(x.Value)); 235return x.IsNull ? Null : new SqlDouble((double)(x.Value)); 243return x.IsNull ? Null : new SqlDouble((double)(x.Value)); 251return x.IsNull ? Null : new SqlDouble((double)(x.Value)); 259return x.IsNull ? Null : new SqlDouble(x.ToDouble()); 267return x.IsNull ? Null : new SqlDouble(x.ToDouble()); 523public static readonly SqlDouble Null = new SqlDouble(true); 527public static readonly SqlDouble Zero = new SqlDouble(0.0); 531public static readonly SqlDouble MinValue = new SqlDouble(Double.MinValue); 535public static readonly SqlDouble MaxValue = new SqlDouble(Double.MaxValue);
251 references to SqlDouble
System.Data (251)
fx\src\data\Microsoft\SqlServer\Server\ITypedGetters.cs (1)
65SqlDouble GetSqlDouble( int ordinal );
fx\src\data\Microsoft\SqlServer\Server\ITypedSetters.cs (1)
64void SetSqlDouble( int ordinal, SqlDouble value );
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (2)
118ht.Add( typeof( SqlDouble ), ExtendedClrTypeCode.SqlDouble ); 304if (value.GetType() == typeof( SqlDouble ))
fx\src\data\Microsoft\SqlServer\Server\SmiRecordBuffer.cs (2)
312public virtual SqlDouble GetSqlDouble( int ordinal ) { 665public virtual void SetSqlDouble( int ordinal, SqlDouble value ) {
fx\src\data\Microsoft\SqlServer\Server\SmiRequestExecutor.cs (2)
370public virtual SqlDouble GetSqlDouble( int ordinal ) { 723public virtual void SetSqlDouble( int ordinal, SqlDouble value ) {
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (2)
323public virtual SqlDouble GetSqlDouble(int ordinal) { 523public virtual void SetSqlDouble(int ordinal, SqlDouble value) {
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (8)
478internal static SqlDouble GetSqlDouble( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal, SmiMetaData metaData ) { 479SqlDouble result; 482result = SqlDouble.Null; 494result = (SqlDouble) obj; 1090SqlDouble.Null, // SqlDbType.Float 1498internal static void SetSqlDouble( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, SqlDouble value ) { 1620case ExtendedClrTypeCode.SqlDouble: SetSqlDouble_Unchecked( sink, setters, ordinal, (SqlDouble) value ); break; 3498private static void SetSqlDouble_Unchecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SqlDouble value ) {
fx\src\data\System\Data\ColumnTypeConverter.cs (1)
49typeof(SqlDouble),
fx\src\data\System\Data\Common\DataStorage.cs (1)
106typeof(SqlDouble),
fx\src\data\System\Data\Common\SQLConvert.cs (5)
118public static SqlDouble ConvertToSqlDouble(object value) { 121return SqlDouble.Null; 128return (SqlDouble)value; 162throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlDouble)); 727return XmlConvert.ToString(((SqlDouble)value).Value);
fx\src\data\System\Data\Common\SQLTypes\SQLByteStorage.cs (9)
65SqlDouble var = (SqlDouble)0; 66SqlDouble prec = (SqlDouble)0; 67SqlDouble dsum = (SqlDouble)0; 68SqlDouble sqrsum = (SqlDouble)0; 79var = ((SqlDouble)count * sqrsum - (dsum * dsum));
fx\src\data\System\Data\Common\SQLTypes\SQLDecimalStorage.cs (9)
65SqlDouble var = (SqlDouble)0; 66SqlDouble prec = (SqlDouble)0; 67SqlDouble dsum = (SqlDouble)0; 68SqlDouble sqrsum = (SqlDouble)0; 79var = ((SqlDouble)count * sqrsum - (dsum * dsum));
fx\src\data\System\Data\Common\SQLTypes\SQLDoubleStorage.cs (34)
22private SqlDouble[] values; 25: base(column, typeof(SqlDouble), SqlDouble.Null, SqlDouble.Null, StorageType.SqlDouble) { 33SqlDouble sum = 0.0d; 46SqlDouble meanSum = 0.0d; 56SqlDouble mean = 0.0d; 57checked {mean = (meanSum / (SqlDouble) meanCount);} 65SqlDouble var = (SqlDouble)0.0d; 66SqlDouble prec = (SqlDouble)0.0d; 67SqlDouble dsum = (SqlDouble)0.0d; 68SqlDouble sqrsum = (SqlDouble)0.0d; 79var = ((SqlDouble)count * sqrsum - (dsum * dsum)); 99SqlDouble min = SqlDouble.MaxValue; 104if ((SqlDouble.LessThan(values[record], min)).IsTrue) 114SqlDouble max = SqlDouble.MinValue; 119if ((SqlDouble.GreaterThan(values[record], max)).IsTrue) 144throw ExprException.Overflow(typeof(SqlDouble)); 154return values[recordNo].CompareTo((SqlDouble)value); 181SqlDouble[] newValues = new SqlDouble[capacity]; 189SqlDouble newValue = new SqlDouble(); 198return ((SqlDouble)tmp); 203Debug.Assert((value.GetType() == typeof(SqlDouble)), "wrong input type"); 214return new SqlDouble[recordCount]; 218SqlDouble[] typedStore = (SqlDouble[]) store; 224values = (SqlDouble[]) store;
fx\src\data\System\Data\Common\SQLTypes\SQLInt16Storage.cs (9)
65SqlDouble var = (SqlDouble)0; 66SqlDouble prec = (SqlDouble)0; 67SqlDouble dsum = (SqlDouble)0; 68SqlDouble sqrsum = (SqlDouble)0; 79var = ((SqlDouble)count * sqrsum - (dsum * dsum));
fx\src\data\System\Data\Common\SQLTypes\SQLInt32Storage.cs (9)
65SqlDouble var = (SqlDouble)0; 66SqlDouble prec = (SqlDouble)0; 67SqlDouble dsum = (SqlDouble)0; 68SqlDouble sqrsum = (SqlDouble)0; 79var = ((SqlDouble)count * sqrsum - (dsum * dsum));
fx\src\data\System\Data\Common\SQLTypes\SQLInt64Storage.cs (9)
65SqlDouble var = (SqlDouble)0; 66SqlDouble prec = (SqlDouble)0; 67SqlDouble dsum = (SqlDouble)0; 68SqlDouble sqrsum = (SqlDouble)0; 79var = ((SqlDouble)count * sqrsum - (dsum * dsum));
fx\src\data\System\Data\Common\SQLTypes\SQLMoneyStorage.cs (9)
65SqlDouble var = (SqlDouble)0; 66SqlDouble prec = (SqlDouble)0; 67SqlDouble dsum = (SqlDouble)0; 68SqlDouble sqrsum = (SqlDouble)0; 79var = ((SqlDouble)count * sqrsum - (dsum * dsum));
fx\src\data\System\Data\Common\SQLTypes\SQLSingleStorage.cs (12)
46SqlDouble meanSum = (SqlDouble) 0.0f; 58checked {mean = (meanSum /(SqlDouble) meanCount).ToSqlSingle();} 66SqlDouble var = (SqlDouble)0; 67SqlDouble prec = (SqlDouble)0; 68SqlDouble dsum = (SqlDouble)0; 69SqlDouble sqrsum = (SqlDouble)0; 80var = ((SqlDouble)count * sqrsum - (dsum * dsum));
fx\src\data\System\Data\Filter\UnaryNode.cs (1)
92value = -(SqlDouble) vl;
fx\src\data\System\Data\Sql\SqlMetaData.cs (5)
836public SqlDouble Adjust(SqlDouble value) { 1084else if (dataType == typeof(SqlDouble)) 1085value = this.Adjust((SqlDouble)value); 1213else if (dataType == typeof(SqlDouble))
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (4)
533internal SqlDouble SqlDouble { 537return SqlDouble.Null; 541return (SqlDouble)this.SqlValue; // anything else we haven't thought of goes through boxing. 746case SqlBuffer.StorageType.Double: return typeof(SqlDouble);
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (2)
960return new SqlDecimal(((SqlDouble)currentRowValue).Value); 1092else if (typeof(SqlDouble) == t || typeof (double) == t) {
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
2333virtual public SqlDouble GetSqlDouble(int i) {
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (1)
763public override SqlDouble GetSqlDouble(int ordinal) {
fx\src\data\System\Data\SqlClient\SqlEnums.cs (6)
316else if (dataType == typeof(SqlDouble)) 391else if (sqlType == typeof(SqlDouble)) return SqlDouble.Null; 434else if (sqlVal is SqlDouble) 435comVal = ((SqlDouble)sqlVal).Value; 710(15, 255, 8, true, false, false, TdsEnums.SQLFLT8, TdsEnums.SQLFLTN, MetaTypeName.FLOAT, typeof(System.Double), typeof(SqlDouble), SqlDbType.Float, DbType.Double, 0);
fx\src\data\System\Data\SqlClient\TdsParser.cs (2)
9962WriteDouble(((SqlDouble)value).Value, stateObj); 10931return SerializeDouble(((SqlDouble)value).Value);
fx\src\data\System\Data\SQLTypes\SQLBoolean.cs (3)
328public static explicit operator SqlBoolean(SqlDouble x) { 469public SqlDouble ToSqlDouble() { 470return (SqlDouble)this;
fx\src\data\System\Data\SQLTypes\SQLByte.cs (3)
310public static explicit operator SqlByte(SqlDouble x) { 469public SqlDouble ToSqlDouble() { 470return (SqlDouble)this;
fx\src\data\System\Data\SQLTypes\SQLDecimal.cs (3)
1762public static explicit operator SqlDecimal(SqlDouble x) { 2882public SqlDouble ToSqlDouble() { 2883return (SqlDouble)this;
fx\src\data\System\Data\SQLTypes\SQLDouble.cs (76)
97public static implicit operator SqlDouble(double x) { 105public static explicit operator double(SqlDouble x) { 119public static SqlDouble Parse(String s) { 121return SqlDouble.Null; 131public static SqlDouble operator -(SqlDouble x) { 142public static SqlDouble operator +(SqlDouble x, SqlDouble y) { 157public static SqlDouble operator -(SqlDouble x, SqlDouble y) { 172public static SqlDouble operator *(SqlDouble x, SqlDouble y) { 187public static SqlDouble operator /(SqlDouble x, SqlDouble y) { 210public static explicit operator SqlDouble(SqlBoolean x) { 218public static implicit operator SqlDouble(SqlByte x) { 226public static implicit operator SqlDouble(SqlInt16 x) { 234public static implicit operator SqlDouble(SqlInt32 x) { 242public static implicit operator SqlDouble(SqlInt64 x) { 250public static implicit operator SqlDouble(SqlSingle x) { 258public static implicit operator SqlDouble(SqlMoney x) { 266public static implicit operator SqlDouble(SqlDecimal x) { 280public static explicit operator SqlDouble(SqlString x) { 282return SqlDouble.Null; 291public static SqlBoolean operator==(SqlDouble x, SqlDouble y) { 298public static SqlBoolean operator!=(SqlDouble x, SqlDouble y) { 305public static SqlBoolean operator<(SqlDouble x, SqlDouble y) { 312public static SqlBoolean operator>(SqlDouble x, SqlDouble y) { 319public static SqlBoolean operator<=(SqlDouble x, SqlDouble y) { 326public static SqlBoolean operator>=(SqlDouble x, SqlDouble y) { 335public static SqlDouble Add(SqlDouble x, SqlDouble y) { 339public static SqlDouble Subtract(SqlDouble x, SqlDouble y) { 344public static SqlDouble Multiply(SqlDouble x, SqlDouble y) { 349public static SqlDouble Divide(SqlDouble x, SqlDouble y) { 354public static SqlBoolean Equals(SqlDouble x, SqlDouble y) { 359public static SqlBoolean NotEquals(SqlDouble x, SqlDouble y) { 364public static SqlBoolean LessThan(SqlDouble x, SqlDouble y) { 369public static SqlBoolean GreaterThan(SqlDouble x, SqlDouble y) { 374public static SqlBoolean LessThanOrEqual(SqlDouble x, SqlDouble y) { 379public static SqlBoolean GreaterThanOrEqual(SqlDouble x, SqlDouble y) { 434if (value is SqlDouble) { 435SqlDouble i = (SqlDouble)value; 439throw ADP.WrongType(value.GetType(), typeof(SqlDouble)); 442public int CompareTo(SqlDouble value) { 460if (!(value is SqlDouble)) { 464SqlDouble i = (SqlDouble)value; 523public static readonly SqlDouble Null = new SqlDouble(true); 527public static readonly SqlDouble Zero = new SqlDouble(0.0); 531public static readonly SqlDouble MinValue = new SqlDouble(Double.MinValue); 535public static readonly SqlDouble MaxValue = new SqlDouble(Double.MaxValue);
fx\src\data\System\Data\SQLTypes\SQLInt16.cs (3)
312public static explicit operator SqlInt16(SqlDouble x) { 482public SqlDouble ToSqlDouble() { 483return (SqlDouble)this;
fx\src\data\System\Data\SQLTypes\SQLInt32.cs (3)
306public static explicit operator SqlInt32(SqlDouble x) { 494public SqlDouble ToSqlDouble() { 495return (SqlDouble)this;
fx\src\data\System\Data\SQLTypes\SQLInt64.cs (3)
345public static explicit operator SqlInt64(SqlDouble x) { 549public SqlDouble ToSqlDouble() { 550return (SqlDouble)this;
fx\src\data\System\Data\SQLTypes\SQLMoney.cs (3)
403public static explicit operator SqlMoney(SqlDouble x) { 534public SqlDouble ToSqlDouble() { 535return (SqlDouble)this;
fx\src\data\System\Data\SQLTypes\SQLSingle.cs (3)
277public static explicit operator SqlSingle(SqlDouble x) { 398public SqlDouble ToSqlDouble() { 399return (SqlDouble)this;
fx\src\data\System\Data\SQLTypes\SQLString.cs (3)
558public static explicit operator SqlString(SqlDouble x) { 706public SqlDouble ToSqlDouble() { 707return (SqlDouble)this;
fx\src\data\System\Data\xmlsaver.cs (1)
220if (type == typeof(double) || type == typeof(SqlDouble))