62 references to ToString
illink (1)
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\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
318id = CompilerErrorCodePrefix + errorCode.ToString($"D{CompilerErrorCodeDigitCount}");
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)
307builder.Append("\\u" + ((int)ch).ToString("x4")); 313builder.Append("\\U" + unicode.ToString("x8")); 387replaceWith = "\\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)
148var errorCodeD4String = errorCode.ToString("D4");
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\NullableReferenceTypesTests.cs (1)
123955var 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)
438Return "!" + index.ToString("D10")
Microsoft.CodeAnalysis.Features (7)
EditAndContinue\SolutionUpdate.cs (2)
55$"types=[{string.Join(",", moduleUpdate.UpdatedTypes.Select(token => token.ToString("X8")))}], " + 56$"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)
216parts.Add(ComputeFolderDistance().ToString("X4"));
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
318id = CompilerErrorCodePrefix + errorCode.ToString($"D{CompilerErrorCodeDigitCount}");
Microsoft.CodeAnalysis.Features.UnitTests (2)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (2)
2860AssertEx.SetEqual([0x02000002, 0x02000003, 0x02000004, 0x02000005], delta.UpdatedTypes, itemInspector: t => "0x" + t.ToString("X")); 3097AssertEx.Equal([0x02000002, 0x02000003], delta.UpdatedTypes, itemInspector: t => "0x" + t.ToString("X"));
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)
89builder.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 (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.VisualBasic.Core (1)
Microsoft\VisualBasic\Conversion.vb (1)
265Return Number.ToString("X")
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
155=> "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"));
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.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)
492throw new ArgumentException(string.Format(SR.MonthCalendarMaxSelCount, value.ToString("D")), nameof(value));
System\Windows\Forms\Input\InputLanguage.cs (1)
176return device.ToString("X8");