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