51 references to ToString
Aspire.Deployment.EndToEnd.Tests (1)
Helpers\AzureAuthenticationHelpers.cs (1)
143return Math.Abs(hash).ToString("x8");
ILCompiler.Compiler (2)
Compiler\Logging\MessageContainer.cs (1)
303.Append(Code.Value.ToString("D4"))
src\runtime\src\coreclr\tools\Common\Compiler\NativeAotNameMangler.cs (1)
398sb.Append("__FnPtr_"u8).Append(((int)fnPtrType.Signature.Flags).ToString("X2")).Append(EnterNameScopeSequence);
ILCompiler.MetadataTransform (2)
Internal\Metadata\NativeFormat\Writer\NativeMetadataWriter.cs (2)
368LogWriter.Write(rec.Handle._value.ToString("x8")); 425_logWriter.Write(rec.Handle._value.ToString("x"));
ILCompiler.ReadyToRun (1)
src\runtime\src\coreclr\tools\Common\Compiler\NativeAotNameMangler.cs (1)
398sb.Append("__FnPtr_"u8).Append(((int)fnPtrType.Signature.Flags).ToString("X2")).Append(EnterNameScopeSequence);
illink (1)
Microsoft.Build (1)
Evaluation\Expander\WellKnownFunctions.cs (1)
929returnVal = i.ToString(arg0);
Microsoft.CodeAnalysis (1)
Diagnostic\CommonMessageProvider.cs (1)
117return s_errorIdCache.GetOrAdd((CodePrefix, errorCode), key => key.prefix + key.code.ToString("0000"));
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
318id = CompilerErrorCodePrefix + errorCode.ToString($"D{CompilerErrorCodeDigitCount}");
Microsoft.CodeAnalysis.CSharp (7)
SymbolDisplay\ObjectDisplay.cs (7)
181replaceWith = "\\u" + ((int)c).ToString("x4"); 247builder.Append("\\u" + ((int)c).ToString("x4")); 253builder.Append("\\U" + unicode.ToString("x8")); 322builder.Append(options.IncludesOption(ObjectDisplayOptions.UseHexadecimalNumbers) ? "0x" + ((int)c).ToString("x4") : ((int)c).ToString()); 363return "0x" + (value >= 0 ? value.ToString("x2") : ((int)value).ToString("x8")); 389return "0x" + (value >= 0 ? value.ToString("x4") : ((int)value).ToString("x8")); 413return "0x" + value.ToString("x8");
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\DeclarationName\DeclarationNameCompletionProvider.cs (1)
84completionContext.AddItem(CreateCompletionItem(name, glyph, sortValue.ToString("D8")));
Microsoft.CodeAnalysis.Features (7)
EditAndContinue\SolutionUpdate.cs (2)
59$"types=[{string.Join(",", moduleUpdate.UpdatedTypes.Select(token => token.ToString("X8")))}], " + 60$"methods=[{string.Join(",", moduleUpdate.UpdatedMethods.Select(token => token.ToString("X8")))}]");
EmbeddedLanguages\DateAndTime\DateAndTimeEmbeddedCompletionProvider.cs (1)
120var sortText = context.Items.Count.ToString("0000");
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexEmbeddedCompletionProvider.cs (1)
112var sortText = context.Items.Count.ToString("0000");
ExtractMethod\ExtractMethodMatrix.cs (1)
251public override string ToString() => GetHashCode().ToString("X");
NavigateTo\RoslynNavigateToItem.cs (1)
217parts.Add(ComputeFolderDistance().ToString("X4"));
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
318id = CompilerErrorCodePrefix + errorCode.ToString($"D{CompilerErrorCodeDigitCount}");
Microsoft.CodeAnalysis.VisualBasic (3)
SymbolDisplay\ObjectDisplay.vb (3)
170Return "&H" & If(value >= 0, value.ToString("X2"), CInt(value).ToString("X8")) 194sb.Append(If(value >= 0, value.ToString("X4"), CInt(value).ToString("X8"))) 234sb.Append(value.ToString("X8"))
Microsoft.DotNet.Build.Tasks.Installers (3)
src\CpioWriter.cs (1)
36writer.Write((entry.Name.Length + 1).ToString("x8")); // This field should include the null terminator.
src\GenerateCurrentVersion.cs (2)
141return string.Format("{0}{1}", months.ToString("D" + (Padding - 2)), seedDate.Day.ToString("D2"));
Microsoft.Maui (1)
Services\Crc64HashAlgorithm.cs (1)
177 string s = i.ToString("X2");
Microsoft.Maui.Controls.SourceGen (1)
src\Core\src\Services\Crc64HashAlgorithm.cs (1)
177 string s = i.ToString("X2");
Microsoft.Maui.Graphics (1)
Color.cs (1)
171 var stringValue = intValue.ToString("X");
Microsoft.TestPlatform.CommunicationUtilities (1)
Json\Jsonite\Jsonite.cs (1)
1247return @"\u" + ((int)chr).ToString("X4");
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\Conversion.vb (1)
265Return Number.ToString("X")
Mono.Cecil (1)
Mono.Cecil.Cil\Instruction.cs (1)
145 builder.Append (instruction.offset.ToString ("x4"));
PresentationFramework (3)
System\Windows\Documents\TextStore.cs (3)
240"hr:", hrSession.ToString("X"), 285"hr:", hrSession.ToString("X")); 2395IMECompositionTracer.Trace(this, IMECompositionTraceOp.EGrantLockWorker, hrSession.ToString("X"));
System.CodeDom (2)
Microsoft\CSharp\CSharpCodeGenerator.cs (2)
804Output.Write(((int)value).ToString("X4")); 809b.Append(((int)value).ToString("X4"));
System.Configuration.ConfigurationManager (1)
System\Configuration\XmlUtilWriter.cs (1)
179string numberToWrite = ((int)ch).ToString("X");
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Activity.cs (1)
1433string overflowSuffix = ((int)GetRandomNumber()).ToString("x8");
System.Net.Http (4)
System\Net\Http\HttpProtocolException.cs (4)
41string message = SR.Format(SR.net_http_http2_stream_error, GetName(protocolError), ((int)protocolError).ToString("x")); 47message = SR.Format(message ?? SR.net_http_http2_connection_error, GetName(protocolError), ((int)protocolError).ToString("x")); 53string message = SR.Format(SR.net_http_http3_stream_error, GetName(protocolError), ((int)protocolError).ToString("x")); 59message = SR.Format(message ?? SR.net_http_http3_connection_error, GetName(protocolError), ((int)protocolError).ToString("x"));
System.Private.Windows.Core.TestUtilities (1)
XUnit\UseCultureAttribute.cs (1)
114string lcid = uiCulture.LCID.ToString("X4");
System.Windows.Forms (2)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
486throw new ArgumentException(string.Format(SR.MonthCalendarMaxSelCount, value.ToString("D")), nameof(value));
System\Windows\Forms\Input\InputLanguage.cs (1)
176return device.ToString("X8");