Implemented interface member:
method
ToString
System.IFormattable.ToString(System.String, System.IFormatProvider)
85 references to ToString
dotnet-user-jwts (1)
Helpers\JwtIssuer.cs (1)
31var id = Guid.NewGuid().ToString().GetHashCode().ToString("x", CultureInfo.InvariantCulture);
IIS.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (4)
56stringBuilder.Append(i.ToString("X2", CultureInfo.InvariantCulture)); 108Assert.True(string.Equals(400, response.Status), i.ToString("X2", CultureInfo.InvariantCulture) + ";" + response); 118var response = await SendSocketRequestAsync("/%" + i.ToString("X2", CultureInfo.InvariantCulture)); 119Assert.True(string.Equals(400, response.Status), i.ToString("X2", CultureInfo.InvariantCulture) + ";" + response);
IISExpress.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (4)
56stringBuilder.Append(i.ToString("X2", CultureInfo.InvariantCulture)); 108Assert.True(string.Equals(400, response.Status), i.ToString("X2", CultureInfo.InvariantCulture) + ";" + response); 118var response = await SendSocketRequestAsync("/%" + i.ToString("X2", CultureInfo.InvariantCulture)); 119Assert.True(string.Equals(400, response.Status), i.ToString("X2", CultureInfo.InvariantCulture) + ";" + response);
InMemory.FunctionalTests (7)
ChunkedResponseTests.cs (7)
223length.ToString("x", CultureInfo.InvariantCulture), 264partialLength.ToString("x", CultureInfo.InvariantCulture), 698length.Value.ToString("x", CultureInfo.InvariantCulture), 754length.Value.ToString("x", CultureInfo.InvariantCulture), 811length.ToString("x", CultureInfo.InvariantCulture), 1095writeSize.ToString("X", CultureInfo.InvariantCulture).ToLowerInvariant(), 1134writeSize.ToString("X", CultureInfo.InvariantCulture).ToLowerInvariant(),
LocalizationWebsite (1)
StartupCustomCulturePreserved.cs (1)
34await context.Response.WriteAsync(10.ToString("C", CultureInfo.CurrentCulture));
Microsoft.AspNetCore.App.Analyzers (2)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
270var sortText = routePatternCompletionContext.Items.Count.ToString("0000", CultureInfo.InvariantCulture);
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (1)
149var sortText = routePatternCompletionContext.Items.Count.ToString("0000", CultureInfo.InvariantCulture);
Microsoft.AspNetCore.Grpc.JsonTranscoding (6)
src\Grpc\JsonTranscoding\src\Shared\Legacy.cs (6)
155builder.Append((nanos / 1000000).ToString("d3", CultureInfo.InvariantCulture)); 159builder.Append((nanos / 1000).ToString("d6", CultureInfo.InvariantCulture)); 163builder.Append(nanos.ToString("d9", CultureInfo.InvariantCulture)); 258builder.Append((nanos / 1000000).ToString("d3", CultureInfo.InvariantCulture)); 262builder.Append((nanos / 1000).ToString("d6", CultureInfo.InvariantCulture)); 266builder.Append(nanos.ToString("d9", CultureInfo.InvariantCulture));
Microsoft.AspNetCore.Grpc.Swagger (6)
src\Grpc\JsonTranscoding\src\Shared\Legacy.cs (6)
155builder.Append((nanos / 1000000).ToString("d3", CultureInfo.InvariantCulture)); 159builder.Append((nanos / 1000).ToString("d6", CultureInfo.InvariantCulture)); 163builder.Append(nanos.ToString("d9", CultureInfo.InvariantCulture)); 258builder.Append((nanos / 1000000).ToString("d3", CultureInfo.InvariantCulture)); 262builder.Append((nanos / 1000).ToString("d6", CultureInfo.InvariantCulture)); 266builder.Append(nanos.ToString("d9", CultureInfo.InvariantCulture));
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
PathStringTests.cs (1)
414var hexEscapedValue = "%" + item.ToString("x2", CultureInfo.InvariantCulture);
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Pages\Account\Manage\EnableAuthenticator.cs (1)
52return topt.ToString("D6", CultureInfo.InvariantCulture);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
RequestTests.cs (4)
352stringBuilder.Append(i.ToString("X2", CultureInfo.InvariantCulture)); 452Assert.True(string.Equals("400", responseStatusCode), i.ToString("X2", CultureInfo.InvariantCulture)); 468var response = await SendSocketRequestAsync(root, "/%" + i.ToString("X2", CultureInfo.InvariantCulture)); 470Assert.True(string.Equals("400", responseStatusCode), i.ToString("X2", CultureInfo.InvariantCulture));
Microsoft.Build (1)
FileUtilities.cs (1)
142return stringToHash.GetHashCode().ToString("X", CultureInfo.InvariantCulture);
Microsoft.Build.Engine.OM.UnitTests (1)
FileUtilities.cs (1)
142return stringToHash.GetHashCode().ToString("X", CultureInfo.InvariantCulture);
Microsoft.Build.Tasks.Core (9)
BootstrapperUtil\ResourceUpdater.cs (1)
85byte[] countArray = StringToByteArray(_fileResources.Count.ToString("G", CultureInfo.InvariantCulture));
FileUtilities.cs (1)
142return stringToHash.GetHashCode().ToString("X", CultureInfo.InvariantCulture);
FormatVersion.cs (1)
52OutputVersion = Version.Substring(0, Version.Length - 1) + Revision.ToString("G", CultureInfo.InvariantCulture);
GetSDKReferenceFiles.cs (2)
960referencesCacheFile = Path.Combine(_cacheFileDirectory, GetCacheFileName(saveContext.SdkIdentity, saveContext.SdkRoot, cacheFileInfo.Hash.ToString("X", CultureInfo.InvariantCulture))); 1085string referencesCacheFile = Path.Combine(cacheFileFolder, GetCacheFileName(sdkIdentity, sdkRoot, hash.ToString("X", CultureInfo.InvariantCulture)));
ManifestUtil\ApplicationManifest.cs (4)
313_oSMajor = v.Major.ToString("G", CultureInfo.InvariantCulture); 314_oSMinor = v.Minor.ToString("G", CultureInfo.InvariantCulture); 315_oSBuild = v.Build.ToString("G", CultureInfo.InvariantCulture); 316_oSRevision = v.Revision.ToString("G", CultureInfo.InvariantCulture);
Microsoft.Build.Utilities.Core (1)
FileUtilities.cs (1)
142return stringToHash.GetHashCode().ToString("X", CultureInfo.InvariantCulture);
Microsoft.Extensions.Identity.Core (1)
TotpSecurityStampBasedTokenProvider.cs (1)
43return Rfc6238AuthenticationService.GenerateCode(token, modifier).ToString("D6", CultureInfo.InvariantCulture);
Microsoft.VisualBasic.Core (6)
Microsoft\VisualBasic\CompilerServices\Conversions.vb (1)
2181Return Value.ToString(Nothing, Nothing)
Microsoft\VisualBasic\CompilerServices\StringType.vb (1)
44Return Value.ToString(Nothing, Nothing)
Microsoft\VisualBasic\FileIO\TextFieldParser.vb (1)
1398builder.Append("\u" & code.ToString("X4", CultureInfo.InvariantCulture))
Microsoft\VisualBasic\Strings.vb (3)
1091ReturnValue = CInt(CBool(Expression)).ToString(CachedYesNoFormatStyle, Nothing) 1097ReturnValue = CInt(CBool(Expression)).ToString(CachedOnOffFormatStyle, Nothing) 1160ReturnValue = CInt(CBool(Expression)).ToString(CachedTrueFalseFormatStyle, Nothing)
MSBuild (1)
FileUtilities.cs (1)
142return stringToHash.GetHashCode().ToString("X", CultureInfo.InvariantCulture);
MSBuildTaskHost (1)
FileUtilities.cs (1)
142return stringToHash.GetHashCode().ToString("X", CultureInfo.InvariantCulture);
PresentationFramework (1)
System\Windows\Documents\RtfToXamlReader.cs (1)
4994xamlStringBuilder.Append(ic.ToString("x", CultureInfo.InvariantCulture));
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Int32Converter.cs (1)
37return ((int)value).ToString("G", formatInfo);
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Convert.cs (1)
2264return value.ToString(format, CultureInfo.InvariantCulture);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (1)
656AppendString(ref result, year.ToString("D" + tokenLen.ToString(CultureInfo.InvariantCulture), CultureInfo.InvariantCulture));
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (1)
5338return "\\u" + ((int)c).ToString("x4", CultureInfo.InvariantCulture);
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
115return ToString(format, null);
System.Private.DataContractSerialization (3)
System\Text\SurrogateChar.cs (3)
26throw new ArgumentException(SR.Format(SR.XmlInvalidSurrogate, ch.ToString("X", CultureInfo.InvariantCulture)), nameof(ch)); 37throw new ArgumentException(SR.Format(SR.XmlInvalidLowSurrogate, ((int)lowChar).ToString("X", CultureInfo.InvariantCulture)), nameof(lowChar)); 40throw new ArgumentException(SR.Format(SR.XmlInvalidHighSurrogate, ((int)highChar).ToString("X", CultureInfo.InvariantCulture)), nameof(highChar));
System.Private.Xml (16)
System\Xml\Core\XmlEncodedRawTextWriter.cs (3)
565string strVal = ((int)ch).ToString("X", NumberFormatInfo.InvariantInfo); 642RawText(surrogateChar.ToString("X", NumberFormatInfo.InvariantInfo)); 1804string s = ((int)ch).ToString("X", NumberFormatInfo.InvariantInfo);
System\Xml\Core\XmlEncodedRawTextWriterAsync.cs (2)
463string strVal = ((int)ch).ToString("X", NumberFormatInfo.InvariantInfo); 537await RawTextAsync(surrogateChar.ToString("X", NumberFormatInfo.InvariantInfo)).ConfigureAwait(false);
System\Xml\Core\XmlTextEncoder.cs (3)
234_textWriter.Write(surrogateChar.ToString("X", NumberFormatInfo.InvariantInfo)); 462string strVal = ((int)ch).ToString("X", NumberFormatInfo.InvariantInfo); 493WriteCharEntityImpl(((int)ch).ToString("X", NumberFormatInfo.InvariantInfo));
System\Xml\Core\XmlUtf8RawTextWriter.cs (3)
487string strVal = ((int)ch).ToString("X", NumberFormatInfo.InvariantInfo); 557RawText(surrogateChar.ToString("X", NumberFormatInfo.InvariantInfo)); 1666string s = ((int)ch).ToString("X", NumberFormatInfo.InvariantInfo);
System\Xml\Core\XmlUtf8RawTextWriterAsync.cs (2)
415string strVal = ((int)ch).ToString("X", NumberFormatInfo.InvariantInfo); 481await RawTextAsync(surrogateChar.ToString("X", NumberFormatInfo.InvariantInfo)).ConfigureAwait(false);
System\Xml\Serialization\XmlSerializationWriter.cs (2)
4282Writer.Write(((int)value).ToString(null, NumberFormatInfo.InvariantInfo)); 4370Writer.Write(((int)value).ToString(null, NumberFormatInfo.InvariantInfo));
System\Xml\XmlConvert.cs (1)
632return value.ToString(null, CultureInfo.InvariantCulture);
System.Runtime.Caching (1)
System\Runtime\Caching\Dbg.cs (1)
28e is ExternalException ee ? "Exception " + e + Environment.NewLine + "_hr=0x" + ee.ErrorCode.ToString("x", CultureInfo.InvariantCulture) :
System.Runtime.Numerics (1)
System\Number.BigInteger.cs (1)
892return value._sign.ToString(formatString, info);