Base:
method
ToString
System.ValueType.ToString()
45 references to ToString
Microsoft.Build.Engine.UnitTests (22)
Evaluation\Expander_Tests.cs (8)
3526Assert.Equal((39.9 + 2.1).ToString(), result); 3733Assert.Equal((39.9 + 2.1).ToString(), result); 3745Assert.Equal((42.9 - 0.9).ToString(), result); 3753Assert.Equal((84.0 * 0.5).ToString(), result); 3761Assert.Equal((84.4 / 2.0).ToString(), result); 3769Assert.Equal((2345.5 % 43).ToString(), result); 4640TestPropertyFunction("$([MSBuild]::Add($(X), 1))", "X", value.ToString(), expected.ToString());
Evaluation\IntrinsicFunctionOverload_Tests.cs (14)
48string expected = ((long.MaxValue + 1D) + 1).ToString(); 70string expected = ((long.MinValue - 1D) + 1).ToString(); 92string expected = 3.0.ToString(); 134string expected = ((long.MaxValue + 1D) - 1).ToString(); 156string expected = ((long.MinValue - 1D) - 1).ToString(); 178string expected = 1.0.ToString(); 220string expected = ((long.MaxValue + 1D) * 1).ToString(); 242string expected = ((long.MinValue - 1D) * 1).ToString(); 264string expected = 2.0.ToString(); 306string expected = ((long.MaxValue + 1D) / 1).ToString(); 328string expected = ((long.MinValue - 1D) / 1).ToString(); 350string expected = 2.0.ToString(); 392string expected = ((long.MaxValue + 1D) % 1).ToString(); 414string expected = ((long.MinValue - 1D) % 1).ToString();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Semantics\PatternSwitchTests.cs (3)
1352Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case 1.01:").WithArguments(1.01.ToString()).WithLocation(13, 13), 1355Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case -0.0:").WithArguments((-0.0).ToString()).WithLocation(34, 13), 1358Diagnostic(ErrorCode.ERR_DuplicateCaseLabel, "case -double.NaN:").WithArguments((-double.NaN).ToString()).WithLocation(35, 13),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\NullableConversionTests.cs (8)
754Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int?)double.MaxValue").WithArguments(double.MaxValue.ToString(), "int").WithLocation(15, 13), 757Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int?)double.NaN").WithArguments(double.NaN.ToString(), "int").WithLocation(16, 13), 760Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int?)double.NegativeInfinity").WithArguments(double.NegativeInfinity.ToString(), "int").WithLocation(17, 13), 763Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int?)double.PositiveInfinity").WithArguments(double.PositiveInfinity.ToString(), "int").WithLocation(18, 13), 778Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int)double.MaxValue").WithArguments(double.MaxValue.ToString(), "int").WithLocation(29, 13), 781Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int)double.NaN").WithArguments(double.NaN.ToString(), "int").WithLocation(30, 13), 784Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int)double.NegativeInfinity").WithArguments(double.NegativeInfinity.ToString(), "int").WithLocation(31, 13), 787Diagnostic(ErrorCode.ERR_ConstOutOfRangeChecked, "(int)double.PositiveInfinity").WithArguments(double.PositiveInfinity.ToString(), "int").WithLocation(32, 13),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
SymbolDisplay\ObjectDisplayTests.cs (1)
292Assert.Equal("12,5", doubleValue.ToString());
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolDisplay\ObjectDisplayTests.vb (1)
242Assert.Equal("12,5", doubleValue.ToString())
Microsoft.Maui.Essentials (1)
Battery\Battery.shared.cs (1)
279 $"{nameof(ChargeLevel)}: {ChargeLevel.ToString()}, " +
Microsoft.ML.FastTree (3)
TreeEnsemble\InternalRegressionTree.cs (3)
1213sbSplitGain.Append(_splitGain[n].ToString() + toAppend); 1226sbOutput.Append(LeafValues[n].ToString() + "\t"); 1232sbOutput.Append(LeafValues[numNonLeaves].ToString());
Microsoft.ML.Samples (1)
Dynamic\DataOperations\LoadingText.cs (1)
34sb.Append((value < 0.8 ? 0 : value).ToString() + '\t');
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\Metrics\MetricsEventSource.cs (2)
411Parent.MultipleSessionsConfiguredIncorrectlyError(clientId!, _aggregationManager.MaxHistograms.ToString(), maxHistograms.ToString(), _aggregationManager.MaxTimeSeries.ToString(), maxTimeSeries.ToString(), _aggregationManager.CollectionPeriod.TotalSeconds.ToString(), refreshInterval.ToString());
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Convert.cs (1)
2004return value.ToString();
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
834public override string ToString() => _value.ToString();
VBCSCompiler.UnitTests (1)
ServerUtil.cs (1)
54keepAlive: keepAlive.TotalSeconds.ToString());