19 implementations of ToDouble
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
LinkTagHelperTest.cs (1)
1252
public double
ToDouble
(IFormatProvider provider)
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskBuilderTestTask.cs (1)
48
public double
ToDouble
(IFormatProvider provider) => Value.ToDouble(provider);
Microsoft.Gen.Logging.Generated.Tests (1)
test\Generators\Microsoft.Gen.Logging\TestClasses\FormattableTestExtensions.cs (1)
36
public readonly double
ToDouble
(IFormatProvider? provider) => throw new NotSupportedException();
System.Private.CoreLib (16)
src\libraries\System.Private.CoreLib\src\System\Boolean.cs (1)
381
double IConvertible.
ToDouble
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
237
double IConvertible.
ToDouble
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
572
double IConvertible.
ToDouble
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1987
double IConvertible.
ToDouble
(IFormatProvider? provider) => throw InvalidCast(nameof(Double));
src\libraries\System.Private.CoreLib\src\System\DBNull.cs (1)
97
double IConvertible.
ToDouble
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1089
double IConvertible.
ToDouble
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
507
double IConvertible.
ToDouble
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
2188
double IConvertible.
ToDouble
(IFormatProvider? provider) => Convert.ToDouble(GetValue());
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
240
double IConvertible.
ToDouble
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
255
double IConvertible.
ToDouble
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
252
double IConvertible.
ToDouble
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
243
double IConvertible.
ToDouble
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
502
double IConvertible.
ToDouble
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
234
double IConvertible.
ToDouble
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
250
double IConvertible.
ToDouble
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
249
double IConvertible.
ToDouble
(IFormatProvider? provider)
87 references to ToDouble
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskBuilderTestTask.cs (1)
48
public double ToDouble(IFormatProvider provider) => Value.
ToDouble
(provider);
Microsoft.VisualBasic.Core (72)
Microsoft\VisualBasic\CompilerServices\BooleanType.vb (1)
114
Return CBool(ValueInterface.
ToDouble
(Nothing))
Microsoft\VisualBasic\CompilerServices\ByteType.vb (1)
98
Return CByte(ValueInterface.
ToDouble
(Nothing))
Microsoft\VisualBasic\CompilerServices\Conversions.vb (15)
153
Return CBool(ValueInterface.
ToDouble
(Nothing))
296
Return CByte(ValueInterface.
ToDouble
(Nothing))
443
Return CSByte(ValueInterface.
ToDouble
(Nothing))
586
Return CShort(ValueInterface.
ToDouble
(Nothing))
732
Return CUShort(ValueInterface.
ToDouble
(Nothing))
875
Return CInt(ValueInterface.
ToDouble
(Nothing))
1020
Return CUInt(ValueInterface.
ToDouble
(Nothing))
1166
Return CLng(ValueInterface.
ToDouble
(Nothing))
1313
Return CULng(ValueInterface.
ToDouble
(Nothing))
1468
Return CDec(ValueInterface.
ToDouble
(Nothing))
1712
Return CSng(ValueInterface.
ToDouble
(Nothing))
1841
Return ValueInterface.
ToDouble
(Nothing)
1857
Return CDbl(ValueInterface.
ToDouble
(Nothing))
2295
Return CStr(ValueInterface.
ToDouble
(Nothing))
2434
Case TypeCode.Double : Return iconv.
ToDouble
(Nothing)
Microsoft\VisualBasic\CompilerServices\DecimalType.vb (1)
90
Return CDec(valueInterface.
ToDouble
(Nothing))
Microsoft\VisualBasic\CompilerServices\DoubleType.vb (1)
106
Return CDbl(valueInterface.
ToDouble
(Nothing))
Microsoft\VisualBasic\CompilerServices\IntegerType.vb (1)
98
Return CInt(ValueInterface.
ToDouble
(Nothing))
Microsoft\VisualBasic\CompilerServices\LongType.vb (1)
101
Return CLng(ValueInterface.
ToDouble
(Nothing))
Microsoft\VisualBasic\CompilerServices\ObjectType.vb (45)
542
Return ObjTstDouble(conv1.
ToDouble
(Nothing), 0)
545
Return ObjTstDouble(0, conv2.
ToDouble
(Nothing))
639
Return ObjTstDouble(conv1.
ToDouble
(Nothing), conv2.
ToDouble
(Nothing))
642
Return ObjTstDouble(conv1.
ToDouble
(Nothing), ToVBBool(conv2))
645
Return ObjTstDouble(ToVBBool(conv1), conv2.
ToDouble
(Nothing))
833
dbl1 = conv1.
ToDouble
(Nothing)
841
dbl2 = conv2.
ToDouble
(Nothing)
1033
DoubleResult = -conv.
ToDouble
(Nothing)
1048
DoubleResult = -conv.
ToDouble
(Nothing)
1637
Return AddDouble(conv1.
ToDouble
(Nothing), conv2.
ToDouble
(Nothing))
1640
Return AddDouble(conv1.
ToDouble
(Nothing), ToVBBool(conv2))
1643
Return AddDouble(ToVBBool(conv1), conv2.
ToDouble
(Nothing))
1727
dbl1 = conv1.
ToDouble
(Nothing)
1735
dbl2 = conv2.
ToDouble
(Nothing)
1936
Return SubDouble(conv1.
ToDouble
(Nothing), conv2.
ToDouble
(Nothing))
1939
Return SubDouble(conv1.
ToDouble
(Nothing), ToVBBool(conv2))
1942
Return SubDouble(ToVBBool(conv1), conv2.
ToDouble
(Nothing))
2026
dbl1 = conv1.
ToDouble
(Nothing)
2034
dbl2 = conv2.
ToDouble
(Nothing)
2238
Return MulDouble(conv1.
ToDouble
(Nothing), conv2.
ToDouble
(Nothing))
2241
Return MulDouble(conv1.
ToDouble
(Nothing), ToVBBool(conv2))
2244
Return MulDouble(ToVBBool(conv1), conv2.
ToDouble
(Nothing))
2328
dbl1 = conv1.
ToDouble
(Nothing)
2336
dbl2 = conv2.
ToDouble
(Nothing)
2505
Return DivDouble(conv1.
ToDouble
(Nothing), 0)
2515
Return DivDouble(0, conv2.
ToDouble
(Nothing))
2523
Return DivDouble(ToVBBool(conv1), conv2.
ToDouble
(Nothing))
2546
Return DivDouble(conv1.
ToDouble
(Nothing), ToVBBool(conv2))
2604
Return DivDouble(conv1.
ToDouble
(Nothing), conv2.
ToDouble
(Nothing))
2622
dbl1 = conv1.
ToDouble
(Nothing)
2630
dbl2 = conv2.
ToDouble
(Nothing)
2809
Return ModDouble(conv1.
ToDouble
(Nothing), 0)
2833
Return ModDouble(0, conv2.
ToDouble
(Nothing))
2872
Return ModDouble(conv1.
ToDouble
(Nothing), conv2.
ToDouble
(Nothing))
2875
Return ModDouble(conv1.
ToDouble
(Nothing), ToVBBool(conv2))
2878
Return ModDouble(ToVBBool(conv1), conv2.
ToDouble
(Nothing))
2973
dbl1 = conv1.
ToDouble
(Nothing)
2981
dbl2 = conv2.
ToDouble
(Nothing)
3674
Return iconv.
ToDouble
(Nothing)
Microsoft\VisualBasic\CompilerServices\ShortType.vb (1)
98
Return CShort(ValueInterface.
ToDouble
(Nothing))
Microsoft\VisualBasic\CompilerServices\SingleType.vb (1)
112
Return CSng(ValueInterface.
ToDouble
(Nothing))
Microsoft\VisualBasic\CompilerServices\StringType.vb (1)
133
Return FromDouble(ValueInterface.
ToDouble
(Nothing))
Microsoft\VisualBasic\Conversion.vb (2)
147
Return Fix(ValueInterface.
ToDouble
(Nothing))
222
Return Int(ValueInterface.
ToDouble
(Nothing))
Microsoft\VisualBasic\Strings.vb (1)
1301
dbl = ConvertibleExpression.
ToDouble
(Nothing)
System.Data.Common (5)
System\Data\Common\DoubleStorage.cs (2)
193
value = ((IConvertible)value).
ToDouble
(FormatProvider);
229
_values[record] = ((IConvertible)value).
ToDouble
(FormatProvider);
System\Data\Common\SQLConvert.cs (1)
537
return ((IConvertible)(string)value).
ToDouble
(formatProvider);
System\Data\Filter\ConstNode.cs (2)
164
return convertible.
ToDouble
(NumberFormatInfo.InvariantInfo);
264
return convertible.
ToDouble
(NumberFormatInfo.InvariantInfo);
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\Convert.cs (7)
157
TypeCode.Double => v.
ToDouble
(provider),
202
return value.
ToDouble
(provider);
274
return ic.
ToDouble
(provider);
1563
return value == null ? 0 : ((IConvertible)value).
ToDouble
(null);
1568
return value == null ? 0 : ((IConvertible)value).
ToDouble
(provider);
1589
return ((IConvertible)value).
ToDouble
(null);
1656
return ((IConvertible)value).
ToDouble
(null);
System.Private.Xml (2)
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (2)
588
value = ((IConvertible)value).
ToDouble
(null);
640
value = new XmlQueryItemSequence(new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), ((IConvertible)value).
ToDouble
(null)));