19 implementations of ToString
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
LinkTagHelperTest.cs (1)
1282
public string
ToString
(IFormatProvider provider)
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskBuilderTestTask.cs (1)
54
public string
ToString
(IFormatProvider provider) => Value.ToString(provider);
Microsoft.Gen.Logging.Generated.Tests (1)
test\Generators\Microsoft.Gen.Logging\TestClasses\FormattableTestExtensions.cs (1)
47
public readonly string
ToString
(IFormatProvider? provider) => "Converted!";
System.Private.CoreLib (16)
src\libraries\System.Private.CoreLib\src\System\Boolean.cs (1)
90
public string
ToString
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
152
public string
ToString
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
162
public string
ToString
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1778
public string
ToString
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\DBNull.cs (1)
32
public string
ToString
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
492
public string
ToString
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
365
public string
ToString
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
1442
public string
ToString
(IFormatProvider? provider) =>
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
103
public string
ToString
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
124
public string
ToString
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
116
public string
ToString
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
111
public string
ToString
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
355
public string
ToString
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
98
public string
ToString
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
114
public string
ToString
(IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
113
public string
ToString
(IFormatProvider? provider)
93 references to ToString
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskBuilderTestTask.cs (1)
54
public string ToString(IFormatProvider provider) => Value.
ToString
(provider);
Microsoft.VisualBasic.Core (80)
Microsoft\VisualBasic\CompilerServices\BooleanType.vb (1)
126
Return CBool(BooleanType.FromString(ValueInterface.
ToString
(Nothing)))
Microsoft\VisualBasic\CompilerServices\ByteType.vb (1)
106
Return ByteType.FromString(ValueInterface.
ToString
(Nothing))
Microsoft\VisualBasic\CompilerServices\CharArrayType.vb (1)
42
Return ValueInterface.
ToString
(Nothing).ToCharArray()
Microsoft\VisualBasic\CompilerServices\CharType.vb (1)
44
Return CharType.FromString(ValueInterface.
ToString
(Nothing))
Microsoft\VisualBasic\CompilerServices\Conversions.vb (16)
166
Return CBool(ValueInterface.
ToString
(Nothing))
308
Return CByte(ValueInterface.
ToString
(Nothing))
456
Return CSByte(ValueInterface.
ToString
(Nothing))
599
Return CShort(ValueInterface.
ToString
(Nothing))
745
Return CUShort(ValueInterface.
ToString
(Nothing))
888
Return CInt(ValueInterface.
ToString
(Nothing))
1033
Return CUInt(ValueInterface.
ToString
(Nothing))
1179
Return CLng(ValueInterface.
ToString
(Nothing))
1326
Return CULng(ValueInterface.
ToString
(Nothing))
1476
Return ToDecimal(ValueInterface.
ToString
(Nothing), NumberFormat)
1720
Return ToSingle(ValueInterface.
ToString
(Nothing), NumberFormat)
1865
Return ToDouble(ValueInterface.
ToString
(Nothing), NumberFormat)
2020
Return CDate(ValueInterface.
ToString
(Nothing))
2092
Return CChar(ValueInterface.
ToString
(Nothing))
2137
Return ValueInterface.
ToString
(Nothing).ToCharArray()
2304
Return CStr(ValueInterface.
ToString
(Nothing))
Microsoft\VisualBasic\CompilerServices\DateType.vb (1)
51
Return DateType.FromString(ValueInterface.
ToString
(Nothing), GetCultureInfo())
Microsoft\VisualBasic\CompilerServices\DecimalType.vb (1)
96
Return DecimalType.FromString(valueInterface.
ToString
(Nothing), NumberFormat)
Microsoft\VisualBasic\CompilerServices\DoubleType.vb (1)
114
Return DoubleType.FromString(valueInterface.
ToString
(Nothing), NumberFormat)
Microsoft\VisualBasic\CompilerServices\IntegerType.vb (1)
106
Return IntegerType.FromString(ValueInterface.
ToString
(Nothing))
Microsoft\VisualBasic\CompilerServices\LongType.vb (1)
109
Return LongType.FromString(ValueInterface.
ToString
(Nothing))
Microsoft\VisualBasic\CompilerServices\ObjectType.vb (43)
608
Return ObjTstDateTime(DateType.FromString(conv1.
ToString
(Nothing), GetCultureInfo()), conv2.ToDateTime(Nothing))
611
Return ObjTstDateTime(conv1.ToDateTime(Nothing), DateType.FromString(conv2.
ToString
(Nothing), GetCultureInfo()))
614
Return ObjTstStringString(conv1.
ToString
(Nothing), conv2.
ToString
(Nothing), TextCompare)
617
Return ObjTstBoolean(conv1.ToBoolean(Nothing), BooleanType.FromString(conv2.
ToString
(Nothing)))
620
Return ObjTstBoolean(BooleanType.FromString(conv1.
ToString
(Nothing)), conv2.ToBoolean(Nothing))
624
Return ObjTstStringString(conv1.
ToString
(Nothing), conv2.
ToString
(Nothing), TextCompare)
829
dbl1 = DoubleType.FromString(conv1.
ToString
(Nothing))
837
dbl2 = DoubleType.FromString(conv2.
ToString
(Nothing))
1059
DoubleResult = -DoubleType.FromString(conv.
ToString
(Nothing))
1186
Return Not LongType.FromString(iconv.
ToString
(Nothing))
1723
dbl1 = DoubleType.FromString(conv1.
ToString
(Nothing))
1731
dbl2 = DoubleType.FromString(conv2.
ToString
(Nothing))
1859
Return SubStringString(Nothing, conv2.
ToString
(Nothing))
1862
Return SubStringString(conv1.
ToString
(Nothing), Nothing)
1921
Return SubStringString(conv1.
ToString
(Nothing), conv2.
ToString
(Nothing))
2022
dbl1 = DoubleType.FromString(conv1.
ToString
(Nothing))
2030
dbl2 = DoubleType.FromString(conv2.
ToString
(Nothing))
2223
Return MulStringString(conv1.
ToString
(Nothing), conv2.
ToString
(Nothing))
2324
dbl1 = DoubleType.FromString(conv1.
ToString
(Nothing))
2332
dbl2 = DoubleType.FromString(conv2.
ToString
(Nothing))
2489
Return DivStringString(conv1.
ToString
(Nothing), conv2.
ToString
(Nothing))
2618
dbl1 = DoubleType.FromString(conv1.
ToString
(Nothing))
2626
dbl2 = DoubleType.FromString(conv2.
ToString
(Nothing))
2777
Return ModStringString(conv1.
ToString
(Nothing), conv2.
ToString
(Nothing))
2969
dbl1 = DoubleType.FromString(conv1.
ToString
(Nothing))
2977
dbl2 = DoubleType.FromString(conv2.
ToString
(Nothing))
3099
Return IDivideInt64(0, LongType.FromString(conv2.
ToString
(Nothing)))
3102
Return IDivideInt64(LongType.FromString(conv1.
ToString
(Nothing)), 0)
3114
Return IDivideStringString(conv1.
ToString
(Nothing), conv2.
ToString
(Nothing))
3117
Return IDivideInt64(LongType.FromString(conv1.
ToString
(Nothing)), ToVBBool(conv2))
3126
Return IDivideInt64(LongType.FromString(conv1.
ToString
(Nothing)), conv2.ToInt64(Nothing))
3188
Return IDivideInt64(ToVBBool(conv1), LongType.FromString(conv2.
ToString
(Nothing)))
3275
lng1 = LongType.FromString(conv1.
ToString
(Nothing))
3291
lng2 = LongType.FromString(conv2.
ToString
(Nothing))
3370
Return LongType.FromString(conv1.
ToString
(Nothing)) << amount
3407
Return LongType.FromString(conv1.
ToString
(Nothing)) >> amount
Microsoft\VisualBasic\CompilerServices\ShortType.vb (1)
106
Return ShortType.FromString(ValueInterface.
ToString
(Nothing))
Microsoft\VisualBasic\CompilerServices\SingleType.vb (1)
120
Return SingleType.FromString(ValueInterface.
ToString
(Nothing), NumberFormat)
Microsoft\VisualBasic\CompilerServices\StringType.vb (1)
139
Return ValueInterface.
ToString
(Nothing)
Microsoft\VisualBasic\CompilerServices\Versioned.vb (1)
78
Dim value As String = valueInterface.
ToString
(Nothing)
Microsoft\VisualBasic\Conversion.vb (7)
156
Return Fix(CDbl(ValueInterface.
ToString
(Nothing)))
231
Return Int(CDbl(ValueInterface.
ToString
(Nothing)))
327
LongValue = CLng(ValueInterface.
ToString
(Nothing))
330
Return Hex(CULng(ValueInterface.
ToString
(Nothing)))
438
LongValue = CLng(ValueInterface.
ToString
(Nothing))
441
Return Oct(CULng(ValueInterface.
ToString
(Nothing)))
518
s = CStr(CDbl(ValueInterface.
ToString
(Nothing)))
Microsoft\VisualBasic\Information.vb (1)
373
value = valueInterface.
ToString
(Nothing)
System.Data.Common (7)
System\Data\Common\DbConnectionStringCommon.cs (1)
17
return ((IConvertible)value).
ToString
(CultureInfo.InvariantCulture);
System\Data\Common\SQLConvert.cs (4)
436
return ((IConvertible)(bool)value).
ToString
(formatProvider);
438
return ((IConvertible)(char)value).
ToString
(formatProvider);
480
return iconvertible.
ToString
(formatProvider);
728
return iconvertible.
ToString
(System.Globalization.CultureInfo.InvariantCulture);
System\Data\ProviderBase\SchemaMapping.cs (2)
1185
targetColumn.Namespace = ((IConvertible)value).
ToString
(CultureInfo.InvariantCulture);
1195
targetColumn.Expression = ((IConvertible)value).
ToString
(CultureInfo.InvariantCulture);
System.Data.Odbc (1)
Common\System\Data\Common\DbConnectionStringCommon.cs (1)
249
return ((IConvertible)value).
ToString
(CultureInfo.InvariantCulture);
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Convert.cs (4)
160
TypeCode.String => v.
ToString
(provider),
208
return value.
ToString
(provider);
280
return ic.
ToString
(provider);
1878
return ic.
ToString
(provider);