20 instantiations of SqlSingle
System.Data.Common (20)
System\Data\Common\SQLConvert.cs (1)
595return new SqlSingle(XmlConvert.ToSingle((string)value));
System\Data\SQLTypes\SQLSingle.cs (19)
70return new SqlSingle(x); 89return new SqlSingle(float.Parse(s, CultureInfo.InvariantCulture)); 96return x.IsNull ? Null : new SqlSingle(-x._value); 113return new SqlSingle(value); 126return new SqlSingle(value); 139return new SqlSingle(value); 155return new SqlSingle(value); 165return x.IsNull ? Null : new SqlSingle(x.ByteValue); 172return x.IsNull ? Null : new SqlSingle(x.Value); 179return x.IsNull ? Null : new SqlSingle(x.Value); 186return x.IsNull ? Null : new SqlSingle(x.Value); 193return x.IsNull ? Null : new SqlSingle(x.Value); 199return x.IsNull ? Null : new SqlSingle(x.ToDouble()); 206return x.IsNull ? Null : new SqlSingle(x.ToDouble()); 216return x.IsNull ? Null : new SqlSingle(x.Value); 449public static readonly SqlSingle Null = new SqlSingle(true); 450public static readonly SqlSingle Zero = new SqlSingle((float)0.0); 451public static readonly SqlSingle MinValue = new SqlSingle(float.MinValue); 452public static readonly SqlSingle MaxValue = new SqlSingle(float.MaxValue);
129 references to SqlSingle
netstandard (1)
netstandard.cs (1)
589[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlTypes.SqlSingle))]
System.Data (1)
src\libraries\shims\System.Data\ref\System.Data.cs (1)
246[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlTypes.SqlSingle))]
System.Data.Common (127)
System\Data\ColumnTypeConverter.cs (1)
42typeof(SqlSingle),
System\Data\Common\DataStorage.cs (1)
108typeof(SqlSingle),
System\Data\Common\SQLConvert.cs (6)
122StorageType.SqlSingle => (SqlSingle)value, 160public static SqlSingle ConvertToSqlSingle(object value) 165return SqlSingle.Null; 172StorageType.SqlSingle => (SqlSingle)value, 187_ => throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlSingle)), 683return XmlConvert.ToString(((SqlSingle)value).Value);
System\Data\Common\SQLTypes\SQLSingleStorage.cs (21)
16private SqlSingle[] _values = default!; // Late-initialized 19: base(column, typeof(SqlSingle), SqlSingle.Null, SqlSingle.Null, StorageType.SqlSingle) 31SqlSingle sum = 0.0f; 58SqlSingle mean = 0; 104SqlSingle min = SqlSingle.MaxValue; 111if ((SqlSingle.LessThan(_values[record], min)).IsTrue) 120SqlSingle max = SqlSingle.MinValue; 127if ((SqlSingle.GreaterThan(_values[record], max)).IsTrue) 154throw ExprException.Overflow(typeof(SqlSingle)); 167return _values[recordNo].CompareTo((SqlSingle)value); 208SqlSingle newValue = default; 218return ((SqlSingle)tmp); 226Debug.Assert((value.GetType() == typeof(SqlSingle)), "wrong input type"); 239return new SqlSingle[recordCount]; 244SqlSingle[] typedStore = (SqlSingle[])store; 251_values = (SqlSingle[])store;
System\Data\Filter\UnaryNode.cs (1)
103value = -(SqlSingle)vl;
System\Data\SQLTypes\SQLBoolean.cs (3)
266public static explicit operator SqlBoolean(SqlSingle x) 423public SqlSingle ToSqlSingle() 425return (SqlSingle)this;
System\Data\SQLTypes\SQLByte.cs (2)
229public static explicit operator SqlByte(SqlSingle x) 432public SqlSingle ToSqlSingle()
System\Data\SQLTypes\SQLDecimal.cs (2)
1780public static explicit operator SqlDecimal(SqlSingle x) 3006public SqlSingle ToSqlSingle()
System\Data\SQLTypes\SQLDouble.cs (3)
190public static implicit operator SqlDouble(SqlSingle x) 350public SqlSingle ToSqlSingle() 352return (SqlSingle)this;
System\Data\SQLTypes\SQLInt16.cs (2)
226public static explicit operator SqlInt16(SqlSingle x) 435public SqlSingle ToSqlSingle()
System\Data\SQLTypes\SQLInt32.cs (2)
222public static explicit operator SqlInt32(SqlSingle x) 450public SqlSingle ToSqlSingle()
System\Data\SQLTypes\SQLInt64.cs (2)
264public static explicit operator SqlInt64(SqlSingle x) 509public SqlSingle ToSqlSingle()
System\Data\SQLTypes\SQLMoney.cs (2)
344public static explicit operator SqlMoney(SqlSingle x) 503public SqlSingle ToSqlSingle()
System\Data\SQLTypes\SQLSingle.cs (74)
20public struct SqlSingle : INullable, IComparable, IXmlSerializable, IEquatable<SqlSingle> 68public static implicit operator SqlSingle(float x) 74public static explicit operator float(SqlSingle x) 84public static SqlSingle Parse(string s) 87return SqlSingle.Null; 94public static SqlSingle operator -(SqlSingle x) 103public static SqlSingle operator +(SqlSingle x, SqlSingle y) 116public static SqlSingle operator -(SqlSingle x, SqlSingle y) 129public static SqlSingle operator *(SqlSingle x, SqlSingle y) 142public static SqlSingle operator /(SqlSingle x, SqlSingle y) 163public static explicit operator SqlSingle(SqlBoolean x) 169public static implicit operator SqlSingle(SqlByte x) 176public static implicit operator SqlSingle(SqlInt16 x) 183public static implicit operator SqlSingle(SqlInt32 x) 190public static implicit operator SqlSingle(SqlInt64 x) 197public static implicit operator SqlSingle(SqlMoney x) 203public static implicit operator SqlSingle(SqlDecimal x) 214public static explicit operator SqlSingle(SqlDouble x) 221public static explicit operator SqlSingle(SqlString x) 224return SqlSingle.Null; 229public static SqlBoolean operator ==(SqlSingle x, SqlSingle y) 234public static SqlBoolean operator !=(SqlSingle x, SqlSingle y) 239public static SqlBoolean operator <(SqlSingle x, SqlSingle y) 244public static SqlBoolean operator >(SqlSingle x, SqlSingle y) 249public static SqlBoolean operator <=(SqlSingle x, SqlSingle y) 254public static SqlBoolean operator >=(SqlSingle x, SqlSingle y) 264public static SqlSingle Add(SqlSingle x, SqlSingle y) 269public static SqlSingle Subtract(SqlSingle x, SqlSingle y) 275public static SqlSingle Multiply(SqlSingle x, SqlSingle y) 281public static SqlSingle Divide(SqlSingle x, SqlSingle y) 287public static SqlBoolean Equals(SqlSingle x, SqlSingle y) 293public static SqlBoolean NotEquals(SqlSingle x, SqlSingle y) 299public static SqlBoolean LessThan(SqlSingle x, SqlSingle y) 305public static SqlBoolean GreaterThan(SqlSingle x, SqlSingle y) 311public static SqlBoolean LessThanOrEqual(SqlSingle x, SqlSingle y) 317public static SqlBoolean GreaterThanOrEqual(SqlSingle x, SqlSingle y) 379if (value is SqlSingle i) 383throw ADP.WrongType(value!.GetType(), typeof(SqlSingle)); 386public int CompareTo(SqlSingle value) 402value is SqlSingle other && Equals(other); 407public bool Equals(SqlSingle other) => 449public static readonly SqlSingle Null = new SqlSingle(true); 450public static readonly SqlSingle Zero = new SqlSingle((float)0.0); 451public static readonly SqlSingle MinValue = new SqlSingle(float.MinValue); 452public static readonly SqlSingle MaxValue = new SqlSingle(float.MaxValue);
System\Data\SQLTypes\SQLString.cs (3)
488public static explicit operator SqlString(SqlSingle x) 663public SqlSingle ToSqlSingle() 665return (SqlSingle)this;
System\Data\TypeLimiter.cs (1)
164typeof(SqlSingle),
System\Data\xmlsaver.cs (1)
245if (type == typeof(float) || type == typeof(SqlSingle))