25 instantiations of SqlSingle
System.Data (25)
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (2)
616result = new SqlSingle( temp ); 1035result = new SqlSingle( GetSingle_Unchecked( sink, getters, ordinal ) );
fx\src\data\System\Data\Common\SQLConvert.cs (1)
650return new SqlSingle(XmlConvert.ToSingle((string)value));
fx\src\data\System\Data\Common\SQLTypes\SQLSingleStorage.cs (1)
190SqlSingle newValue = new SqlSingle();
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (1)
614return new SqlSingle(_value._single);
fx\src\data\System\Data\SqlClient\SqlEnums.cs (1)
495sqlVal = new SqlSingle((float)comVal);
fx\src\data\System\Data\SQLTypes\SQLSingle.cs (19)
100return new SqlSingle(x); 125return new SqlSingle(Single.Parse(s, CultureInfo.InvariantCulture)); 134return x.IsNull ? Null : new SqlSingle(-x.m_value); 153return new SqlSingle(value); 168return new SqlSingle(value); 183return new SqlSingle(value); 201return new SqlSingle(value); 213return x.IsNull ? Null : new SqlSingle(x.ByteValue); 222return x.IsNull ? Null : new SqlSingle((float)(x.Value)); 231return x.IsNull ? Null : new SqlSingle((float)(x.Value)); 240return x.IsNull ? Null : new SqlSingle((float)(x.Value)); 249return x.IsNull ? Null : new SqlSingle((float)(x.Value)); 257return x.IsNull ? Null : new SqlSingle(x.ToDouble()); 266return x.IsNull ? Null : new SqlSingle(x.ToDouble()); 278return x.IsNull ? Null : new SqlSingle(x.Value); 527public static readonly SqlSingle Null = new SqlSingle(true); 531public static readonly SqlSingle Zero = new SqlSingle((float)0.0); 535public static readonly SqlSingle MinValue = new SqlSingle(Single.MinValue); 539public static readonly SqlSingle MaxValue = new SqlSingle(Single.MaxValue);
175 references to SqlSingle
System.Data (175)
fx\src\data\Microsoft\SqlServer\Server\ITypedGetters.cs (1)
63SqlSingle GetSqlSingle( int ordinal );
fx\src\data\Microsoft\SqlServer\Server\ITypedSetters.cs (1)
62void SetSqlSingle( int ordinal, SqlSingle value );
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (2)
125ht.Add( typeof( SqlSingle ), ExtendedClrTypeCode.SqlSingle ); 281else if (value.GetType() == typeof( SqlSingle ))
fx\src\data\Microsoft\SqlServer\Server\SmiRecordBuffer.cs (2)
302public virtual SqlSingle GetSqlSingle( int ordinal ) { 655public virtual void SetSqlSingle( int ordinal, SqlSingle value ) {
fx\src\data\Microsoft\SqlServer\Server\SmiRequestExecutor.cs (2)
360public virtual SqlSingle GetSqlSingle( int ordinal ) { 713public virtual void SetSqlSingle( int ordinal, SqlSingle value ) {
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (2)
318public virtual SqlSingle GetSqlSingle(int ordinal) { 518public virtual void SetSqlSingle(int ordinal, SqlSingle value) {
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (8)
608internal static SqlSingle GetSqlSingle( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal, SmiMetaData metaData ) { 609SqlSingle result; 612result = SqlSingle.Null; 624result = (SqlSingle) obj; 1097SqlSingle.Null, // SqlDbType.Real 1534internal static void SetSqlSingle( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, SqlSingle value ) { 1627case ExtendedClrTypeCode.SqlSingle: SetSqlSingle_Unchecked( sink, setters, ordinal, (SqlSingle) value ); break; 3563private static void SetSqlSingle_Unchecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SqlSingle value ) {
fx\src\data\System\Data\ColumnTypeConverter.cs (1)
48typeof(SqlSingle),
fx\src\data\System\Data\Common\DataStorage.cs (1)
112typeof(SqlSingle),
fx\src\data\System\Data\Common\SQLConvert.cs (6)
154return (SqlSingle)value; 208public static SqlSingle ConvertToSqlSingle(object value) { 211return SqlSingle.Null; 218return (SqlSingle)value; 248throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlSingle)); 739return XmlConvert.ToString(((SqlSingle)value).Value);
fx\src\data\System\Data\Common\SQLTypes\SQLSingleStorage.cs (23)
22private SqlSingle[] values; 25: base(column, typeof(SqlSingle), SqlSingle.Null, SqlSingle.Null, StorageType.SqlSingle) { 33SqlSingle sum = 0.0f; 57SqlSingle mean = 0; 100SqlSingle min = SqlSingle.MaxValue; 106if ((SqlSingle.LessThan(values[record], min)).IsTrue) 115SqlSingle max = SqlSingle.MinValue; 121if ((SqlSingle.GreaterThan(values[record], max)).IsTrue) 145throw ExprException.Overflow(typeof(SqlSingle)); 155return values[recordNo].CompareTo((SqlSingle)value); 182SqlSingle[] newValues = new SqlSingle[capacity]; 190SqlSingle newValue = new SqlSingle(); 199return ((SqlSingle)tmp); 204Debug.Assert((value.GetType() == typeof(SqlSingle)), "wrong input type"); 215return new SqlSingle[recordCount]; 219SqlSingle[] typedStore = (SqlSingle[]) store; 225values = (SqlSingle[]) store;
fx\src\data\System\Data\Filter\UnaryNode.cs (1)
95value = -(SqlSingle) vl;
fx\src\data\System\Data\Sql\SqlMetaData.cs (5)
830public SqlSingle Adjust(SqlSingle value) { 1098else if (dataType == typeof(SqlSingle)) 1099value = this.Adjust((SqlSingle)value); 1242else if (dataType == typeof(SqlSingle))
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (4)
608internal SqlSingle SqlSingle { 612return SqlSingle.Null; 616return (SqlSingle)this.SqlValue; // anything else we haven't thought of goes through boxing. 751case SqlBuffer.StorageType.Single: return typeof(SqlSingle);
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (2)
947return new SqlDecimal(((SqlSingle)currentRowValue).Value); 1096else if (typeof(SqlSingle) == t || typeof (float) == t) {
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
2358virtual public SqlSingle GetSqlSingle(int i) {
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (1)
758public override SqlSingle GetSqlSingle(int ordinal) {
fx\src\data\System\Data\SqlClient\SqlEnums.cs (6)
330else if (dataType == typeof(SqlSingle)) 389if (sqlType == typeof(SqlSingle)) return SqlSingle.Null; 430if (sqlVal is SqlSingle) 431comVal = ((SqlSingle)sqlVal).Value; 713(7, 255, 4, true, false, false, TdsEnums.SQLFLT4, TdsEnums.SQLFLTN, MetaTypeName.REAL, typeof(System.Single), typeof(SqlSingle), SqlDbType.Real, DbType.Single, 0);
fx\src\data\System\Data\SqlClient\TdsParser.cs (2)
9959WriteFloat(((SqlSingle)value).Value, stateObj); 10928return SerializeFloat(((SqlSingle)value).Value);
fx\src\data\System\Data\SQLTypes\SQLBoolean.cs (3)
336public static explicit operator SqlBoolean(SqlSingle x) { 493public SqlSingle ToSqlSingle() { 494return (SqlSingle)this;
fx\src\data\System\Data\SQLTypes\SQLByte.cs (3)
296public static explicit operator SqlByte(SqlSingle x) { 493public SqlSingle ToSqlSingle() { 494return (SqlSingle)this;
fx\src\data\System\Data\SQLTypes\SQLDecimal.cs (3)
1754public static explicit operator SqlDecimal(SqlSingle x) { 2902public SqlSingle ToSqlSingle() { 2903return (SqlSingle)this;
fx\src\data\System\Data\SQLTypes\SQLDouble.cs (3)
250public static implicit operator SqlDouble(SqlSingle x) { 413public SqlSingle ToSqlSingle() { 414return (SqlSingle)this;
fx\src\data\System\Data\SQLTypes\SQLInt16.cs (3)
297public static explicit operator SqlInt16(SqlSingle x) { 502public SqlSingle ToSqlSingle() { 503return (SqlSingle)this;
fx\src\data\System\Data\SQLTypes\SQLInt32.cs (3)
291public static explicit operator SqlInt32(SqlSingle x) { 514public SqlSingle ToSqlSingle() { 515return (SqlSingle)this;
fx\src\data\System\Data\SQLTypes\SQLInt64.cs (3)
330public static explicit operator SqlInt64(SqlSingle x) { 569public SqlSingle ToSqlSingle() { 570return (SqlSingle)this;
fx\src\data\System\Data\SQLTypes\SQLMoney.cs (3)
395public static explicit operator SqlMoney(SqlSingle x) { 554public SqlSingle ToSqlSingle() { 555return (SqlSingle)this;
fx\src\data\System\Data\SQLTypes\SQLSingle.cs (76)
99public static implicit operator SqlSingle(float x) { 107public static explicit operator float(SqlSingle x) { 121public static SqlSingle Parse(String s) { 123return SqlSingle.Null; 133public static SqlSingle operator -(SqlSingle x) { 144public static SqlSingle operator +(SqlSingle x, SqlSingle y) { 159public static SqlSingle operator -(SqlSingle x, SqlSingle y) { 174public static SqlSingle operator *(SqlSingle x, SqlSingle y) { 189public static SqlSingle operator /(SqlSingle x, SqlSingle y) { 212public static explicit operator SqlSingle(SqlBoolean x) { 220public static implicit operator SqlSingle(SqlByte x) { 229public static implicit operator SqlSingle(SqlInt16 x) { 238public static implicit operator SqlSingle(SqlInt32 x) { 247public static implicit operator SqlSingle(SqlInt64 x) { 256public static implicit operator SqlSingle(SqlMoney x) { 264public static implicit operator SqlSingle(SqlDecimal x) { 277public static explicit operator SqlSingle(SqlDouble x) { 286public static explicit operator SqlSingle(SqlString x) { 288return SqlSingle.Null; 296public static SqlBoolean operator==(SqlSingle x, SqlSingle y) { 303public static SqlBoolean operator!=(SqlSingle x, SqlSingle y) { 310public static SqlBoolean operator<(SqlSingle x, SqlSingle y) { 317public static SqlBoolean operator>(SqlSingle x, SqlSingle y) { 324public static SqlBoolean operator<=(SqlSingle x, SqlSingle y) { 331public static SqlBoolean operator>=(SqlSingle x, SqlSingle y) { 340public static SqlSingle Add(SqlSingle x, SqlSingle y) { 344public static SqlSingle Subtract(SqlSingle x, SqlSingle y) { 349public static SqlSingle Multiply(SqlSingle x, SqlSingle y) { 354public static SqlSingle Divide(SqlSingle x, SqlSingle y) { 359public static SqlBoolean Equals(SqlSingle x, SqlSingle y) { 364public static SqlBoolean NotEquals(SqlSingle x, SqlSingle y) { 369public static SqlBoolean LessThan(SqlSingle x, SqlSingle y) { 374public static SqlBoolean GreaterThan(SqlSingle x, SqlSingle y) { 379public static SqlBoolean LessThanOrEqual(SqlSingle x, SqlSingle y) { 384public static SqlBoolean GreaterThanOrEqual(SqlSingle x, SqlSingle y) { 438if (value is SqlSingle) { 439SqlSingle i = (SqlSingle)value; 443throw ADP.WrongType(value.GetType(), typeof(SqlSingle)); 446public int CompareTo(SqlSingle value) { 464if (!(value is SqlSingle)) { 468SqlSingle i = (SqlSingle)value; 527public static readonly SqlSingle Null = new SqlSingle(true); 531public static readonly SqlSingle Zero = new SqlSingle((float)0.0); 535public static readonly SqlSingle MinValue = new SqlSingle(Single.MinValue); 539public static readonly SqlSingle MaxValue = new SqlSingle(Single.MaxValue);
fx\src\data\System\Data\SQLTypes\SQLString.cs (3)
550public static explicit operator SqlString(SqlSingle x) { 730public SqlSingle ToSqlSingle() { 731return (SqlSingle)this;
fx\src\data\System\Data\xmlsaver.cs (1)
218if (type == typeof(Single)|| type == typeof(SqlSingle))