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