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