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