Implemented interface member:
method
ToString
System.IFormattable.ToString(System.String, System.IFormatProvider)
37 references to ToString
PresentationFramework (13)
src\Framework\MS\Internal\LayoutDump.cs (9)
386
writer.WriteAttributeString("Left", point.X.
ToString
("F", CultureInfo.InvariantCulture));
387
writer.WriteAttributeString("Top", point.Y.
ToString
("F", CultureInfo.InvariantCulture));
397
writer.WriteAttributeString("Width", size.Width.
ToString
("F", CultureInfo.InvariantCulture));
398
writer.WriteAttributeString("Height", size.Height.
ToString
("F", CultureInfo.InvariantCulture));
408
writer.WriteAttributeString("Left", rect.Left.
ToString
("F", CultureInfo.InvariantCulture));
409
writer.WriteAttributeString("Top", rect.Top.
ToString
("F", CultureInfo.InvariantCulture));
410
writer.WriteAttributeString("Width", rect.Width.
ToString
("F", CultureInfo.InvariantCulture));
411
writer.WriteAttributeString("Height", rect.Height.
ToString
("F", CultureInfo.InvariantCulture));
499
writer.WriteAttributeString("BaselineOffset", ((double)text.GetValue(TextBlock.BaselineOffsetProperty)).
ToString
("F", CultureInfo.InvariantCulture));
src\Framework\System\Windows\Controls\Slider.cs (1)
911
return this.Value.
ToString
("N", format);
src\Framework\System\Windows\Documents\RtfToXamlReader.cs (3)
188
return px.
ToString
("f2", CultureInfo.InvariantCulture);
194
return px.
ToString
("f2", CultureInfo.InvariantCulture);
200
return px.
ToString
("f2", CultureInfo.InvariantCulture);
System (4)
compmod\microsoft\csharp\csharpcodeprovider.cs (1)
2032
Output.Write(d.
ToString
("R", CultureInfo.InvariantCulture));
compmod\microsoft\visualbasic\VBCodeProvider.cs (1)
1243
Output.Write(d.
ToString
("R", CultureInfo.InvariantCulture));
compmod\system\codedom\compiler\CodeGenerator.cs (1)
1553
Output.Write(d.
ToString
("R", CultureInfo.InvariantCulture));
compmod\system\componentmodel\DoubleConverter.cs (1)
73
return ((Double)value).
ToString
("R", formatInfo);
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
1706
result = string.Format(CultureInfo.CurrentCulture, "{0}%", valueAsDouble.
ToString
("F0", CultureInfo.CurrentCulture));
1710
result = string.Format(CultureInfo.CurrentCulture, "{0}%", valueAsDouble.
ToString
("F2", CultureInfo.CurrentCulture));
System.Data (2)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
1706
result = string.Format(CultureInfo.CurrentCulture, "{0}%", valueAsDouble.
ToString
("F0", CultureInfo.CurrentCulture));
1710
result = string.Format(CultureInfo.CurrentCulture, "{0}%", valueAsDouble.
ToString
("F2", CultureInfo.CurrentCulture));
System.Data.Entity (1)
System\Data\SqlClient\SqlGen\SqlGenerator.cs (1)
982
WrapWithCastIfNeeded(true, doubleValue.
ToString
("R", CultureInfo.InvariantCulture), "float(53)", result);
System.Data.Services (1)
System\Data\Services\Serializers\JsonWriter.cs (1)
223
this.WriteCore(value.
ToString
(null, CultureInfo.InvariantCulture), true /*quotes*/);
System.Data.SqlXml (2)
System\Xml\Xsl\Runtime\DecimalFormatter.cs (1)
213
string result = value.
ToString
(subPicture, formatInfo);
System\Xml\Xsl\XsltOld\NumberAction.cs (1)
117
str = val.
ToString
("N", NumberFormat);
System.Numerics (4)
System\Numerics\Complex.cs (4)
263
return (String.Format(CultureInfo.CurrentCulture, "({0}, {1})", this.m_real.
ToString
(format, CultureInfo.CurrentCulture), this.m_imaginary.
ToString
(format, CultureInfo.CurrentCulture)));
271
return (String.Format(provider, "({0}, {1})", this.m_real.
ToString
(format, provider), this.m_imaginary.
ToString
(format, provider)));
System.Runtime.Serialization (1)
System\Xml\XmlConverter.cs (1)
1007
return ToAsciiChars(value.
ToString
("R", NumberFormatInfo.InvariantInfo), buffer, offset);
System.Web (2)
Handlers\TraceHandler.cs (1)
498
return (o is double) ? ((double)o).
ToString
("F6", CultureInfo.CurrentCulture) : o.ToString();
UI\ObjectConverter.cs (1)
114
return ((Double)value).
ToString
(formatString, CultureInfo.InvariantCulture);
System.Web.Extensions (1)
Script\Serialization\JavaScriptSerializer.cs (1)
455
sb.Append(((double)o).
ToString
("r", CultureInfo.InvariantCulture));
System.Xml (4)
System\Xml\Serialization\XmlSerializationWriter.cs (1)
3084
Writer.Write(((Double)value).
ToString
("R", NumberFormatInfo.InvariantInfo));
System\Xml\XmlConvert.cs (2)
739
return value.
ToString
("R", NumberFormatInfo.InvariantInfo);
1136
return ((double)value).
ToString
("R", NumberFormatInfo.InvariantInfo);
System\Xml\XPath\Internal\StringFunctions.cs (1)
60
return num.
ToString
("R", NumberFormatInfo.InvariantInfo);