19 implementations of ToSingle
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
LinkTagHelperTest.cs (1)
1277public float ToSingle(IFormatProvider provider)
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskBuilderTestTask.cs (1)
53public float ToSingle(IFormatProvider provider) => Value.ToSingle(provider);
Microsoft.Gen.Logging.Generated.Tests (1)
test\Generators\Microsoft.Gen.Logging\TestClasses\FormattableTestExtensions.cs (1)
41public readonly float ToSingle(IFormatProvider? provider) => throw new NotSupportedException();
System.Private.CoreLib (16)
src\libraries\System.Private.CoreLib\src\System\Boolean.cs (1)
376float IConvertible.ToSingle(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
232float IConvertible.ToSingle(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
567float IConvertible.ToSingle(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1986float IConvertible.ToSingle(IFormatProvider? provider) => throw InvalidCast(nameof(Single));
src\libraries\System.Private.CoreLib\src\System\DBNull.cs (1)
92float IConvertible.ToSingle(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1084float IConvertible.ToSingle(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
502float IConvertible.ToSingle(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
2187float IConvertible.ToSingle(IFormatProvider? provider) => Convert.ToSingle(GetValue());
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
235float IConvertible.ToSingle(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
250float IConvertible.ToSingle(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
247float IConvertible.ToSingle(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
238float IConvertible.ToSingle(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
497float IConvertible.ToSingle(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
229float IConvertible.ToSingle(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
245float IConvertible.ToSingle(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
244float IConvertible.ToSingle(IFormatProvider? provider)
68 references to ToSingle
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskBuilderTestTask.cs (1)
53public float ToSingle(IFormatProvider provider) => Value.ToSingle(provider);
Microsoft.VisualBasic.Core (57)
Microsoft\VisualBasic\CompilerServices\BooleanType.vb (1)
107Return CBool(ValueInterface.ToSingle(Nothing))
Microsoft\VisualBasic\CompilerServices\ByteType.vb (1)
91Return CByte(ValueInterface.ToSingle(Nothing))
Microsoft\VisualBasic\CompilerServices\Conversions.vb (15)
146Return CBool(ValueInterface.ToSingle(Nothing)) 289Return CByte(ValueInterface.ToSingle(Nothing)) 436Return CSByte(ValueInterface.ToSingle(Nothing)) 579Return CShort(ValueInterface.ToSingle(Nothing)) 725Return CUShort(ValueInterface.ToSingle(Nothing)) 868Return CInt(ValueInterface.ToSingle(Nothing)) 1013Return CUInt(ValueInterface.ToSingle(Nothing)) 1159Return CLng(ValueInterface.ToSingle(Nothing)) 1306Return CULng(ValueInterface.ToSingle(Nothing)) 1461Return CDec(ValueInterface.ToSingle(Nothing)) 1696Return ValueInterface.ToSingle(Nothing) 1705Return ValueInterface.ToSingle(Nothing) 1850Return CDbl(ValueInterface.ToSingle(Nothing)) 2292Return CStr(ValueInterface.ToSingle(Nothing)) 2433Case TypeCode.Single : Return iconv.ToSingle(Nothing)
Microsoft\VisualBasic\CompilerServices\DecimalType.vb (1)
87Return CDec(valueInterface.ToSingle(Nothing))
Microsoft\VisualBasic\CompilerServices\DoubleType.vb (1)
99Return CDbl(valueInterface.ToSingle(Nothing))
Microsoft\VisualBasic\CompilerServices\IntegerType.vb (1)
91Return CInt(ValueInterface.ToSingle(Nothing))
Microsoft\VisualBasic\CompilerServices\LongType.vb (1)
94Return CLng(ValueInterface.ToSingle(Nothing))
Microsoft\VisualBasic\CompilerServices\ObjectType.vb (30)
536Return ObjTstSingle(conv1.ToSingle(Nothing), 0) 539Return ObjTstSingle(0, conv2.ToSingle(Nothing)) 658Return ObjTstSingle(conv1.ToSingle(Nothing), conv2.ToSingle(Nothing)) 661Return ObjTstSingle(conv1.ToSingle(Nothing), ToVBBool(conv2)) 664Return ObjTstSingle(ToVBBool(conv1), conv2.ToSingle(Nothing)) 1041Return -conv.ToSingle(Nothing) 1656Return AddSingle(conv1.ToSingle(Nothing), conv2.ToSingle(Nothing)) 1659Return AddSingle(conv1.ToSingle(Nothing), ToVBBool(conv2)) 1662Return AddSingle(ToVBBool(conv1), conv2.ToSingle(Nothing)) 1955Return SubSingle(conv1.ToSingle(Nothing), conv2.ToSingle(Nothing)) 1958Return SubSingle(conv1.ToSingle(Nothing), ToVBBool(conv2)) 1961Return SubSingle(ToVBBool(conv1), conv2.ToSingle(Nothing)) 2257Return MulSingle(conv1.ToSingle(Nothing), conv2.ToSingle(Nothing)) 2260Return MulSingle(conv1.ToSingle(Nothing), ToVBBool(conv2)) 2263Return MulSingle(ToVBBool(conv1), conv2.ToSingle(Nothing)) 2536Return DivSingle(ToVBBool(conv1), conv2.ToSingle(Nothing)) 2539Return DivSingle(conv1.ToSingle(Nothing), ToVBBool(conv2)) 2572Return DivSingle(conv1.ToSingle(Nothing), conv2.ToSingle(Nothing)) 2806Return ModSingle(conv1.ToSingle(Nothing), 0) 2830Return ModSingle(0, conv2.ToSingle(Nothing)) 2893Return ModSingle(conv1.ToSingle(Nothing), conv2.ToSingle(Nothing)) 2896Return ModSingle(conv1.ToSingle(Nothing), ToVBBool(conv2)) 2899Return ModSingle(ToVBBool(conv1), conv2.ToSingle(Nothing)) 3671Return iconv.ToSingle(Nothing)
Microsoft\VisualBasic\CompilerServices\ShortType.vb (1)
91Return CShort(ValueInterface.ToSingle(Nothing))
Microsoft\VisualBasic\CompilerServices\SingleType.vb (1)
105Return ValueInterface.ToSingle(Nothing)
Microsoft\VisualBasic\CompilerServices\StringType.vb (1)
130Return FromSingle(ValueInterface.ToSingle(Nothing))
Microsoft\VisualBasic\Conversion.vb (2)
144Return Fix(ValueInterface.ToSingle(Nothing)) 219Return Int(ValueInterface.ToSingle(Nothing))
Microsoft\VisualBasic\Strings.vb (1)
1318sng = ConvertibleExpression.ToSingle(Nothing)
System.Data.Common (3)
System\Data\Common\SingleStorage.cs (2)
194value = ((IConvertible)value).ToSingle(FormatProvider); 230_values[record] = ((IConvertible)value).ToSingle(FormatProvider);
System\Data\Common\SQLConvert.cs (1)
535return ((IConvertible)(string)value).ToSingle(formatProvider);
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\Convert.cs (7)
156TypeCode.Single => v.ToSingle(provider), 200return value.ToSingle(provider); 272return ic.ToSingle(provider); 1460return value == null ? 0 : ((IConvertible)value).ToSingle(null); 1465return value == null ? 0 : ((IConvertible)value).ToSingle(provider); 1481return ((IConvertible)value).ToSingle(null); 1553return ((IConvertible)value).ToSingle(null);