62 references to ToString
illink (1)
Microsoft.Build (1)
Evaluation\Expander\WellKnownFunctions.cs (1)
883returnVal = 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.CSharp (7)
SymbolDisplay\ObjectDisplay.cs (7)
182replaceWith = "\\u" + ((int)c).ToString("x4"); 248builder.Append("\\u" + ((int)c).ToString("x4")); 254builder.Append("\\U" + unicode.ToString("x8")); 323builder.Append(options.IncludesOption(ObjectDisplayOptions.UseHexadecimalNumbers) ? "0x" + ((int)c).ToString("x4") : ((int)c).ToString()); 364return "0x" + (value >= 0 ? value.ToString("x2") : ((int)value).ToString("x8")); 390return "0x" + (value >= 0 ? value.ToString("x4") : ((int)value).ToString("x8")); 414return "0x" + value.ToString("x8");
Microsoft.CodeAnalysis.CSharp.EditorFeatures (3)
StringCopyPaste\StringCopyPasteHelpers.cs (3)
308builder.Append("\\u" + ((int)ch).ToString("x4")); 314builder.Append("\\U" + unicode.ToString("x8")); 388replaceWith = "\\u" + ((int)c).ToString("x4");
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
LanguageServer\CSharpLspBuildOnlyDiagnosticsTests.cs (1)
31var errorCodeD4String = errorCode.ToString("D4");
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ResultProvider (7)
src\Compilers\CSharp\Portable\SymbolDisplay\ObjectDisplay.cs (7)
182replaceWith = "\\u" + ((int)c).ToString("x4"); 248builder.Append("\\u" + ((int)c).ToString("x4")); 254builder.Append("\\U" + unicode.ToString("x8")); 323builder.Append(options.IncludesOption(ObjectDisplayOptions.UseHexadecimalNumbers) ? "0x" + ((int)c).ToString("x4") : ((int)c).ToString()); 364return "0x" + (value >= 0 ? value.ToString("x2") : ((int)value).ToString("x8")); 390return "0x" + (value >= 0 ? value.ToString("x4") : ((int)value).ToString("x8")); 414return "0x" + value.ToString("x8");
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\DeclarationName\DeclarationNameCompletionProvider.cs (1)
83completionContext.AddItem(CreateCompletionItem(name, glyph, sortValue.ToString("D8")));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (1)
163var errorCodeD4String = errorCode.ToString("D4");
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\NullableReferenceTypesTests.cs (1)
123913var name = "F" + (i + 1).ToString("00");
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\AnonymousTypesSymbolTests.cs (1)
978return "0x" + init.ToString("X").ToLower();
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
IntelliSense\CSharpCompletionCommandHandlerTests_DefaultsSource.vb (1)
437Return "!" + index.ToString("D10")
Microsoft.CodeAnalysis.Features (4)
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)
216parts.Add(ComputeFolderDistance().ToString("X4"));
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
ProtocolConversionsTests.cs (1)
43var expectedAbsoluteUri = "file:///" + uriPrefix + (unescaped.Contains(c) ? c : "%" + ((int)c).ToString("X2")) + "/";
Microsoft.CodeAnalysis.UnitTests (1)
MetadataReferences\AssemblyIdentityDisplayNameTests.cs (1)
359string V = "\\u" + ((int)'V').ToString("X4") + ";";
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.CodeAnalysis.VisualBasic.Features.UnitTests (1)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.vb (1)
90builder.Add("BC" & errorCode.ToString("D5"))
Microsoft.CodeAnalysis.VisualBasic.ResultProvider (3)
src\Compilers\VisualBasic\Portable\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 (2)
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.VisualBasic.Core (1)
Microsoft\VisualBasic\Conversion.vb (1)
265Return Number.ToString("X")
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
154=> "CS" + errorCode.ToString("0000");
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"));
StringTools.Benchmark (2)
SpanBasedStringBuilder_Benchmark.cs (2)
70sbsb.Append(_uniqueStringCounter++.ToString("X8")); 83sb.Append(_uniqueStringCounter++.ToString("X8"));
System.CodeDom (2)
Microsoft\CSharp\CSharpCodeGenerator.cs (2)
806Output.Write(((int)value).ToString("X4")); 811b.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)
1397string 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)
491throw new ArgumentException(string.Format(SR.MonthCalendarMaxSelCount, value.ToString("D")), nameof(value));
System\Windows\Forms\Input\InputLanguage.cs (1)
176return device.ToString("X8");