Base:
method
ToString
System.ValueType.ToString()
446 references to ToString
aspire (7)
Mcp\Docs\LlmsTxtParser.cs (5)
189var titleString = title.ToString(); 199var content = docSpan.ToString(); 269return quoteText.ToString(); 322var sectionContent = docSpan[startIndex..endIndex].ToString(); 515var headingText = headingSpan[..headingEnd].Trim().ToString();
src\Shared\ConsoleLogs\AnsiParser.cs (1)
437url = urlSpan[(argsEndPosition + 1)..].ToString();
src\Shared\ConsoleLogs\TimestampParser.cs (1)
37result = new(content.ToString(), DateTimeOffset.Parse(match.ValueSpan, CultureInfo.InvariantCulture));
Aspire.Azure.Npgsql (1)
src\Components\Common\ManagedIdentityTokenCredentialHelpers.cs (1)
139return principalName.ToString();
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (1)
src\Components\Common\ManagedIdentityTokenCredentialHelpers.cs (1)
139return principalName.ToString();
Aspire.Dashboard (5)
Model\GenAI\GenAIVisualizerDialogViewModel.cs (1)
472var fieldName = remainder.Slice(dotIndex + 1).ToString();
Otlp\Model\OtlpUnits.cs (2)
147_ => unit.ToString(), 164_ => perUnit.ToString(),
src\Shared\ConsoleLogs\AnsiParser.cs (1)
437url = urlSpan[(argsEndPosition + 1)..].ToString();
src\Shared\ConsoleLogs\TimestampParser.cs (1)
37result = new(content.ToString(), DateTimeOffset.Parse(match.ValueSpan, CultureInfo.InvariantCulture));
Aspire.Hosting (3)
Exec\ExecResourceManager.cs (2)
236var commandUnwrapped = command.AsSpan(1, command.Length - 2).ToString(); 266var commandUnwrapped = command.AsSpan(1, command.Length - 2).ToString();
src\Shared\ConsoleLogs\TimestampParser.cs (1)
37result = new(content.ToString(), DateTimeOffset.Parse(match.ValueSpan, CultureInfo.InvariantCulture));
dotnet (2)
Commands\Test\VSTest\TestCommand.cs (1)
562value = colonIndex < 0 ? null : rest[(colonIndex + 1)..].ToString();
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.10.0-1.26377.116\contentFiles\cs\net11.0\Debug.cs (1)
100public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
100public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
315var text = chars.ToString();
ILAssembler (3)
GrammarVisitor.cs (2)
3110str = bytesAsChars.ToString(); 3328bool success = long.TryParse(value.ToString(), parseStyle, CultureInfo.InvariantCulture, out result);
StringHelpers.cs (1)
38return content.ToString();
ILCompiler.Compiler (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
89private string DebuggerDisplay => AsSpan().ToString();
ILCompiler.TypeSystem (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
89private string DebuggerDisplay => AsSpan().ToString();
illink (1)
ILLink.RoslynAnalyzer (5)
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
498tokenString = sb.AsSpan(0, length).ToString();
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
89private string DebuggerDisplay => AsSpan().ToString();
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeName.cs (1)
399rootTypeName._namespace = rootFullName.Slice(0, idx).ToString();
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParser.cs (2)
64Debug.Assert(parsedName.GetNodeCount() == recursiveDepth, $"Node count mismatch for '{typeName.ToString()}'"); 214string fullName = fullTypeName.ToString();
Microsoft.AspNetCore.Components (3)
Routing\Router.cs (1)
282_updateScrollPositionForHashLastLocation = relativePath.ToString();
src\aspnetcore\src\Components\Shared\src\UrlValueConstraint.cs (2)
37result = str.ToString(); 124throw new InvalidOperationException($"Cannot parse the value '{value.ToString()}' as type '{typeof(T)}' for '{destinationNameForMessage}'.");
Microsoft.AspNetCore.Components.Endpoints (1)
CacheView\CacheViewKeyResolver.cs (1)
174names.Add(name.ToString());
Microsoft.AspNetCore.Components.QuickGrid (2)
src\aspnetcore\src\Components\Shared\src\UrlValueConstraint.cs (2)
37result = str.ToString(); 124throw new InvalidOperationException($"Cannot parse the value '{value.ToString()}' as type '{typeof(T)}' for '{destinationNameForMessage}'.");
Microsoft.AspNetCore.Diagnostics.Middleware.PerformanceTests (1)
RedactionBenchmark.cs (1)
146var segment = span.Slice(startIndex, i - startIndex).ToString();
Microsoft.AspNetCore.Http (2)
Features\QueryFeature.cs (2)
126=> Append(key.ToString(), value.ToString());
Microsoft.AspNetCore.InternalTesting (2)
AssemblyTestLog.cs (2)
135testName = string.Concat(testName.AsSpan(0, testNameLength / 2).ToString(), testName.AsSpan(testName.Length - testNameLength / 2, testNameLength / 2).ToString());
Microsoft.AspNetCore.Localization (2)
CookieRequestCultureProvider.cs (2)
108return new ProviderCultureResult(cultureName.ToString(), uiCultureName.ToString());
Microsoft.AspNetCore.Mvc.Razor (1)
TagHelpers\UrlResolutionTagHelper.cs (1)
334return (key.ToString(), keyEnd);
Microsoft.AspNetCore.OpenApi (1)
Services\Schemas\OpenApiSchemaService.cs (1)
704var unescapedReferenceToken = Uri.UnescapeDataString(referenceToken.ToString());
Microsoft.AspNetCore.Rewrite (2)
ApacheModRewrite\FlagParser.cs (2)
77if (!_ruleFlagLookup.TryGetValue(tokenSpan[hasPayload[0]].ToString(), out flag)) 84flags.SetFlag(flag, tokenSpan[hasPayload[1]].ToString());
Microsoft.AspNetCore.Routing (3)
Matching\HostMatcherPolicy.cs (3)
173return new EdgeKey(hostSpan[hostParts[0]].ToString(), null); 182return new EdgeKey(hostSpan[hostParts[0]].ToString(), port); 186return new EdgeKey(hostSpan[hostParts[0]].ToString(), null);
Microsoft.AspNetCore.Server.HttpSys (2)
_generated\6\Windows.Win32.char.InlineArrays.g.cs (2)
65 internal readonly string ToString(int length) => AsReadOnlySpan().Slice(0, length).ToString(); 70 public override readonly string ToString() => AsReadOnlySpan().SliceAtNull().ToString();
Microsoft.AspNetCore.Server.IIS (2)
_generated\5\Windows.Win32.char.InlineArrays.g.cs (2)
65 internal readonly string ToString(int length) => AsReadOnlySpan().Slice(0, length).ToString(); 70 public override readonly string ToString() => AsReadOnlySpan().SliceAtNull().ToString();
Microsoft.Build (12)
BuildCheck\Checks\ExecCliBuildCheck.cs (1)
148: knownBuildCommand.AsSpan().Slice(0, nextSpaceIndex).ToString();
Evaluation\ConditionEvaluator.cs (1)
83string propertyNameString = propertyName.ToString();
Evaluation\Expander.Function.cs (2)
983functionBuilder.Name = functionName.ToString(); 986functionBuilder.Remainder = remainder.ToString();
Logging\TerminalLogger\TerminalLogger.cs (4)
965var relativePathFromWorkingDirToSourceRoot = Path.GetRelativePath(workingDirectorySpan.ToString(), sourceRootSpan.ToString()).AsSpan(); 974projectDisplayPathSpan = Path.Combine(relativePathFromWorkingDirToSourceRoot.ToString(), outputPathSpan.Slice(sourceRootSpan.Length).ToString()).AsSpan();
src\msbuild\src\Shared\PropertyParser.cs (4)
52propertyName = propertyNameValuePair.AsSpan(0, indexOfEqualsSign).Trim().ToString(); 53propertyValue = propertyNameValuePair.AsSpan(indexOfEqualsSign + 1).Trim().ToString(); 106string propertyName = propertyNameValueString.AsSpan(0, indexOfEqualsSign).Trim().ToString(); 107string propertyValue = EscapingUtilities.Escape(propertyNameValueString.AsSpan(indexOfEqualsSign + 1).Trim().ToString());
Microsoft.Build.Framework (2)
FileUtilities.cs (2)
853return (shouldCheckDirectory && DefaultFileSystem.DirectoryExists(Path.Combine(baseDirectory, directory.ToString()))) 854|| (shouldCheckFileOrDirectory && DefaultFileSystem.FileOrDirectoryExists(value.ToString()));
Microsoft.Build.Tasks.CodeAnalysis (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
100public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
Microsoft.Build.Tasks.Core (4)
src\msbuild\src\Shared\PropertyParser.cs (4)
52propertyName = propertyNameValuePair.AsSpan(0, indexOfEqualsSign).Trim().ToString(); 53propertyValue = propertyNameValuePair.AsSpan(indexOfEqualsSign + 1).Trim().ToString(); 106string propertyName = propertyNameValueString.AsSpan(0, indexOfEqualsSign).Trim().ToString(); 107string propertyValue = EscapingUtilities.Escape(propertyNameValueString.AsSpan(indexOfEqualsSign + 1).Trim().ToString());
Microsoft.CodeAnalysis (2)
InternalUtilities\Debug.cs (1)
100public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
InternalUtilities\StringTable.cs (1)
315var text = chars.ToString();
Microsoft.CodeAnalysis.Analyzers (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
100public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
315var text = chars.ToString();
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
100public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
315var text = chars.ToString();
Microsoft.CodeAnalysis.CodeStyle (4)
src\roslyn\src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderHelper.cs (2)
69sb.AppendLine(commentText.ToString()); 78var triviaStringParts = commentText.Span.Trim().ToString().Replace("\r\n", "\n").Split('\n');
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
100public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
315var text = chars.ToString();
Microsoft.CodeAnalysis.CSharp (6)
CommandLine\CSharpCommandLineParser.cs (2)
193string? valueMemoryString() => valueMemory is { } m ? m.Span.ToString() : null; 253string name = nameMemory.Span.ToString().ToLowerInvariant();
CSharpParseOptions.cs (2)
224singleNamespaceBuilder.Add(@namespace.Slice(currentIndex, dotIndex - currentIndex).ToString()); 227singleNamespaceBuilder.Add(@namespace.Slice(currentIndex).ToString());
Parser\LanguageParser_InterpolatedString.cs (2)
266return SyntaxFactory.InterpolatedStringText(MakeInterpolatedStringTextToken(kind, text.ToString())); 333var textString = text.ToString();
Microsoft.CodeAnalysis.CSharp.Features (5)
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (5)
132var parts = Patterns.Whitespace.Split(message.ToString(), 2); 332return (firstPart.ToString(), null); 341return (firstPart.ToString(), string.Empty); 344return (firstPart.ToString(), secondPart.ToString());
Microsoft.CodeAnalysis.Features (1)
src\roslyn\src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderHelper.cs (1)
78var triviaStringParts = commentText.Span.Trim().ToString().Replace("\r\n", "\n").Split('\n');
Microsoft.CodeAnalysis.Razor.Compiler (13)
CSharp\RequiredAttributeParser.cs (5)
189name = _span.ToString(); 195name = _span[..nameEndIndex].ToString(); 230value = _span[..nextQuoteIndex].ToString(); 242value = _span[..valueEndIndex].ToString(); 318var result = _span[..nameEndIndex].ToString();
Language\BoundAttributeDescriptorBuilder.cs (3)
248name.ToString(), 287indexerPrefix.ToString()); 299indexerPrefix.ToString(),
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (2)
2082public string Text => field ??= (Span.Length < original.Length ? Span.ToString() : original); 2089=> field ??= Span.IndexOf(':') is int index && index >= 0 ? Span[..index].ToString() : Text;
Language\Legacy\CSharpCodeParser.cs (3)
1450DirectiveText = directiveTextSpan.ToString() 1477directive.TypePattern = typeName.ToString(); 1478directive.AssemblyName = assemblyName.ToString();
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
100public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
315var text = chars.ToString();
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
100public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
315var text = chars.ToString();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
100public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
Microsoft.Diagnostics.NETCore.Client (1)
DiagnosticsIpc\ProcessInfo.cs (1)
128return Version.TryParse(noMetadataVersion.Slice(0, prereleaseIndex).ToString(), out version);
Microsoft.DotNet.ProjectTools (5)
src\sdk\src\Cli\Microsoft.DotNet.FileBasedPrograms\FileLevelDirectiveHelpers.cs (5)
132var parts = Patterns.Whitespace.Split(message.ToString(), 2); 350return (firstPart.ToString(), null); 359return (firstPart.ToString(), string.Empty); 362return (firstPart.ToString(), secondPart.ToString());
Microsoft.Extensions.AI.Abstractions (1)
Contents\DataUriParser.cs (1)
137mediaType ??= mediaTypeSpan.ToString();
Microsoft.Extensions.Caching.Abstractions (2)
Hybrid\HybridCache.cs (2)
88=> GetOrCreateAsync(key.ToString(), state, factory, options, tags, cancellationToken); 270=> GetOrCreateAsync(key.ToString(), state, factory, options, tags, cancellationToken);
Microsoft.Extensions.Caching.Hybrid (2)
Internal\DefaultHybridCache.TagInvalidation.cs (1)
107return IsTagExpired(tag.ToString(), timestamp, out isPending);
Internal\HybridCachePayload.cs (1)
284pendingTagBuffer[pendingTagsCount++] = tagString ?? stringSpan.ToString();
Microsoft.Extensions.Compliance.Abstractions (3)
Classification\DataClassificationTypeConverter.cs (2)
103taxonomyName = valueSpan.Slice(0, index).ToString(); 104taxonomyValue = valueSpan.Slice(index + 1).ToString();
Redaction\Redactor.cs (1)
251var fmt = format.Length > 0 ? format.ToString() : string.Empty;
Microsoft.Extensions.Compliance.Testing (2)
FakeRedactor.cs (2)
76var sourceString = source.ToString(); 92return string.Format(CultureInfo.InvariantCulture, _format, input.ToString()).Length;
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
89private string DebuggerDisplay => AsSpan().ToString();
Microsoft.Extensions.DataIngestion.Markdig (2)
MarkdownParser.cs (2)
146result.Content = Convert.FromBase64String(url.Slice(commaIndex + 1).ToString()); 147result.MediaType = mediaType.ToString();
Microsoft.Extensions.DataIngestion.MarkItDown (2)
src\Libraries\Microsoft.Extensions.DataIngestion.Markdig\MarkdownParser.cs (2)
146result.Content = Convert.FromBase64String(url.Slice(commaIndex + 1).ToString()); 147result.MediaType = mediaType.ToString();
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Linux\Network\LinuxNetworkUtilizationParser.cs (1)
93var state = (LinuxTcpState)Convert.ToInt32(tcpConnectionState.ToString(), Base16);
Microsoft.Extensions.FileProviders.Physical (1)
PhysicalFilesWatcher.cs (1)
952return (separator >= 0 ? remaining.Slice(0, separator) : remaining).ToString();
Microsoft.Extensions.Http.Diagnostics (1)
Http\HttpDependencyMetadataResolver.cs (1)
128route = routeSpan.ToString();
Microsoft.Extensions.Logging.Abstractions (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
89private string DebuggerDisplay => AsSpan().ToString();
Microsoft.Extensions.Logging.Console (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
89private string DebuggerDisplay => AsSpan().ToString();
Microsoft.Extensions.Telemetry (8)
Http\HttpRouteFormatter.cs (3)
212_ = outputBuffer.Append(httpPath.Slice(startIndex, length).ToString()); 221_ = outputBuffer.Append(httpPath.Slice(startIndex, length).ToString()); 253_ = outputBuffer.Append(httpPath.Slice(startIndex, length).ToString());
Http\HttpRouteParser.cs (4)
256HttpRouteParameterRedactionMode.None => httpPath.Slice(startIndex, length).ToString(), 281return httpPathAsSpan.Slice(startIndex, length).ToString(); 286return httpPathAsSpan.Slice(startIndex, length).ToString(); 311return httpPathAsSpan.Slice(startIndex, length).ToString();
Logging\JustInTimeRedactor.cs (1)
114inputAsSpan = f.ToString(format.Length > 0 ? format.ToString() : string.Empty, formatProvider).AsSpan();
Microsoft.Gen.Logging.Generated.Tests (2)
SimpleRedactors.cs (2)
23return source!.ToString()!.Length; 28var len = source!.ToString()!.Length;
Microsoft.Maui.Essentials (2)
Types\Shared\WebUtils.shared.cs (2)
58 name = segment.Slice(0, equalIndex).ToString(); 70 name = segment.ToString();
Microsoft.Maui.Graphics.Skia (1)
SkiaTextLayout.cs (1)
246 lines.Add(new TextLine(line.ToString(), textWidth));
Microsoft.ML.Core (2)
Utilities\LineParser.cs (2)
40if (float.TryParse(valuesToParse.Slice(toParseStartIndex, i - toParseStartIndex).ToString(), out float parsed)) 50return (true, trimmedLine.Slice(0, firstSeparatorIndex).ToString(), values);
Microsoft.ML.Tokenizers (21)
Model\BPETokenizer.cs (3)
1356Cache.Set(textSpan.ToString(), word); 1472Cache.Set(textSpan.ToString(), word); 1553Cache.Set(textSpan.ToString(), word);
Model\CodeGenTokenizer.cs (3)
468_cache.Set(text is null ? textSpan.ToString() : text, result); 1152_cache.Set(text ?? textSpan.ToString(), result); 1216_cache.Set(text ?? textSpan.ToString(), result);
Model\EnglishRobertaTokenizer.cs (3)
394_cache.Set(text.ToString(), result); 700_cache.Set(text.ToString(), result); 745_cache.Set(text.ToString(), result);
Model\SentencePieceBpeModel.cs (2)
272tokens.Add(new EncodedToken(id.Id, text.Slice(pieceSpan.Index, pieceSpan.Length).ToString(), new Range(pieceSpan.Index, pieceSpan.Index + pieceSpan.Length))); 1218=> _vocabReverse.TryGetValue(id, out string? token) ? token : text.Slice(index, length).ToString();
Model\TiktokenTokenizer.cs (6)
309value[i].TokenLength == 0 ? string.Empty : text.Slice(value[i].TokenIndex, value[i].TokenLength).ToString(), 339string textAsString = text.ToString(); 350encodedTokens[i].TokenLength == 0 ? string.Empty : text.Slice(encodedTokens[i].TokenIndex, encodedTokens[i].TokenLength).ToString(), 457string textAsString = text.ToString(); 622string textAsString = text.ToString(); 748string textAsString = text.ToString();
Normalizer\BertNormalizer.cs (1)
133return Normalize(original.ToString());
Normalizer\SentencePieceNormalizer.cs (1)
146return NormalizeCore(NormalizationChain.Normalize(original.ToString()).AsSpan());
Tokenizer.cs (1)
445normalizedText = normalizer.Normalize(textSpan.ToString());
Utils\StringSpanOrdinalKey.cs (1)
38public override string ToString() => Data ?? Span.ToString();
Microsoft.ML.Tokenizers.Tests (3)
NormalizerTests.cs (2)
87return original.ToString(); 158return original.ToString().Normalize(_normalizationForm);
UnigramTests.cs (1)
551Assert.Equal(decodedString.AsSpan().Slice(0, charsWritten).ToString(), buffer.AsSpan().Slice(0, charsWritten).ToString());
Microsoft.NET.Sdk.StaticWebAssets.Tasks (4)
FingerprintPatternMatcher.cs (2)
60var result = Path.Combine(directoryName.ToString(), $"{fileNamePrefix}{DefaultFingerprintExpression}{extension}"); 79var simpleExtensionResult = Path.Combine(directoryName.ToString(), $"{stem}{expression}{matchExtension}");
GenerateStaticWebAssetEndpointsManifest.cs (1)
174var link = header.AsSpan(index, endIndex - index).ToString();
Utils\Globbing\StaticWebAssetGlobMatcher.cs (1)
117return segments[segments.Count - 1].ToString();
Microsoft.Private.Windows.Core (7)
_generated\37\Windows.Win32.char.InlineArrays.g.cs (4)
65 internal readonly string ToString(int length) => AsReadOnlySpan().Slice(0, length).ToString(); 70 public override readonly string ToString() => AsReadOnlySpan().SliceAtNull().ToString(); 129 internal readonly string ToString(int length) => AsReadOnlySpan().Slice(0, length).ToString(); 134 public override readonly string ToString() => AsReadOnlySpan().SliceAtNull().ToString();
src\winforms\src\Microsoft.Private.Windows.Polyfills\System\IO\PathExtensions.cs (2)
19return path2.ToString(); 21return path1.ToString();
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
220return chars.ToString();
Microsoft.Win32.Registry (4)
Microsoft\Win32\RegistryKey.cs (3)
1138toAdd = chars.ToString(); 1143toAdd = chars.Slice(0, nullPos).ToString(); 1175string str = chars.ToString();
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
85return buffer.Slice(0, length).ToString();
MSBuild (1)
CommandLine\CommandLineParser.cs (1)
210string switchName = switchNameSpan.ToString();
NuGet.Commands (2)
RestoreCommand\ContentFiles\ContentFileUtils.cs (2)
301return span.ToString(); 305var path = itemPath.ToString();
PresentationCore (2)
System\Windows\Input\Command\MouseActionConverter.cs (1)
70_ => throw new NotSupportedException(SR.Format(SR.Unsupported_MouseAction, mouseActionToken.ToString()))
System\Windows\Media\CharacterMetrics.cs (1)
165throw new ArgumentException(SR.Format(SR.CannotConvertStringToType, field.ToString(), "double"));
PresentationFramework (9)
Microsoft\Win32\FileDialog.cs (1)
735extensions.Add(exts[ext].Slice(i + 1).ToString());
System\Windows\Annotations\Annotation.cs (3)
642_typeName = new XmlQualifiedName(name.ToString()); 653_typeName = new XmlQualifiedName(name.ToString(), reader.LookupNamespace(@namespace.ToString()));
System\Windows\Controls\VirtualizingStackPanel.cs (1)
12001_fileName = traceSplits[splitRegions[0]].ToString();
System\Windows\Documents\FixedSchema.cs (1)
444return new string[] { attrValueSpan.Slice(0, spacePos).ToString() };
System\Windows\Documents\TextStore.cs (1)
4666_fileName = traceSplits[splitRegions[0]].ToString();
System\Windows\LengthConverter.cs (1)
225throw new FormatException(SR.Format(SR.LengthFormatError, span.ToString()));
System\Windows\SystemResources.cs (1)
570_assemblyName = ReflectionUtils.GetAssemblyPartialName(assembly).ToString();
Roslyn.Diagnostics.Analyzers (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (1)
100public void AppendFormatted(ReadOnlySpan<char> value) => _builder!.Append(value.ToString());
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
315var text = chars.ToString();
System.CommandLine (6)
EnvironmentVariablesDirective.cs (2)
62string value = parsedValue.AsSpan(indexOfSeparator + 1).Trim().ToString(); 64Environment.SetEnvironmentVariable(variable.ToString(), value);
Parsing\ParseOperation.cs (1)
354result.AddValue(withoutBrackets.Slice(indexOfColon + 1).ToString());
Parsing\StringExtensions.cs (3)
215tokenList.Add(new Token(alias.Slice(i + 1).ToString(), TokenType.Argument, default, argumentIndex)); 225tokenList.Add(new Token(alias.Slice(i).ToString(), TokenType.Argument, default, argumentIndex)); 240tokenList.Add(new Token(alias.Slice(index).ToString(), TokenType.Argument, default, argumentIndex));
System.ComponentModel.TypeConverter (9)
src\runtime\src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (3)
97return Convert.ToInt32(text.Slice(1).ToString(), 16); 101return Convert.ToInt32(text.Slice(2).ToString(), 16); 112throw new ArgumentException(SR.Format(SR.ConvertInvalidPrimitive, text.ToString(), nameof(Int32)), e);
System\ComponentModel\Design\PropertyTabAttribute.cs (2)
112className = _tabClassNames[i].AsSpan(0, commaIndex).Trim().ToString(); 113assemblyName = _tabClassNames[i].AsSpan(commaIndex + 1).Trim().ToString();
System\Drawing\PointConverter.cs (1)
43throw new ArgumentException(SR.Format(SR.TextParseFailedFormat, text.ToString(), $"x{sep} y"));
System\Drawing\RectangleConverter.cs (1)
43throw new ArgumentException(SR.Format(SR.TextParseFailedFormat, text.ToString(), $"x{sep} y{sep} width{sep} height"));
System\Drawing\SizeConverter.cs (1)
43throw new ArgumentException(SR.Format(SR.TextParseFailedFormat, text.ToString(), $"Width{sep} Height"));
System\Drawing\SizeFConverter.cs (1)
43throw new ArgumentException(SR.Format(SR.TextParseFailedFormat, text.ToString(), $"Width{sep} Height"));
System.Console (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
89private string DebuggerDisplay => AsSpan().ToString();
System.Data.Common (2)
System\Data\DataTable.cs (2)
3722current = current.AsSpan(0, length - 4).Trim().ToString(); 3727current = current.AsSpan(0, length - 5).Trim().ToString();
System.Diagnostics.DiagnosticSource (16)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
89private string DebuggerDisplay => AsSpan().ToString();
System\Diagnostics\Activity.cs (4)
1106new ActivityTraceId(traceIdSpan.ToString()), 1107new ActivitySpanId(spanIdSpan.ToString()), 1975return new ActivityTraceId(idData.ToString()); 2142return new ActivitySpanId(idData.ToString());
System\Diagnostics\DsesFilterAndTransform.cs (7)
256eventSource.Message("DiagnosticSource: Ignoring filterAndPayloadSpec '[AS]" + entry.ToString() + "' because sampling ratio was invalid"); 273eventSource.Message("DiagnosticSource: Ignoring filterAndPayloadSpec '[AS]" + entry.ToString() + "' because rate limiting sampling was invalid"); 284eventSource.Message("DiagnosticSource: Ignoring filterAndPayloadSpec '[AS]" + entry.ToString() + "' because sampling method was invalid"); 308eventSource.Message("DiagnosticSource: Ignoring filterAndPayloadSpec '[AS]" + entry.ToString() + "' because event name was invalid"); 323activityName = activitySourceName.Slice(plusSignIndex + 1).Trim().ToString(); 329eventSource.Message("DiagnosticSource: Ignoring filterAndPayloadSpec '[AS]" + entry.ToString() + "' because activity name cannot be specified for wildcard activity sources"); 376activitySourceName.ToString(),
System\Diagnostics\Metrics\MetricsEventSource.cs (2)
929string meterName = text.AsSpan(0, slashIdx).Trim().ToString(); 930string? instrumentName = text.AsSpan(slashIdx + 1).Trim().ToString();
System\Diagnostics\W3CPropagator.cs (2)
274setter(carrier, Baggage, encodedBaggage.AsSpan(0, lastGoodLength - 2).ToString()); 292key = keySpan.ToString();
System.Diagnostics.PerformanceCounter (3)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
85return buffer.Slice(0, length).ToString();
System\Diagnostics\PerformanceCounterLib.cs (2)
1498string instanceName = PERF_INSTANCE_DEFINITION.GetName(in perfInstance, data.Slice(pos)).ToString(); 1594instanceNames[i] = PERF_INSTANCE_DEFINITION.GetName(in perfInstance, data.Slice(pos)).ToString();
System.Diagnostics.Process (4)
src\runtime\src\libraries\Common\src\Interop\Linux\cgroups\Interop.cgroups.cs (2)
347root = mount.Root.ToString(); 348path = mount.MountPoint.ToString();
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcMountInfo.cs (1)
60format = currentFormat.ToString();
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
89private string DebuggerDisplay => AsSpan().ToString();
System.Drawing.Common (2)
System\Drawing\FontFamily.cs (2)
110throw new ArgumentException(SR.Format(SR.GdiplusFontFamilyNotFound, name.ToString())); 114throw new ArgumentException(SR.Format(SR.GdiplusNotTrueTypeFont, name.ToString()));
System.Drawing.Primitives (3)
src\runtime\src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (3)
97return Convert.ToInt32(text.Slice(1).ToString(), 16); 101return Convert.ToInt32(text.Slice(2).ToString(), 16); 112throw new ArgumentException(SR.Format(SR.ConvertInvalidPrimitive, text.ToString(), nameof(Int32)), e);
System.Formats.Tar (2)
src\runtime\src\libraries\Common\src\System\IO\Archiving.Utils.Unix.cs (1)
25(false, false) => path.ToString(),
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
89private string DebuggerDisplay => AsSpan().ToString();
System.IO.FileSystem.AccessControl (4)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
85return buffer.Slice(0, length).ToString();
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
89private string DebuggerDisplay => AsSpan().ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PathHelper.Windows.cs (2)
90throw Win32Marshal.GetExceptionForWin32Error(errorCode, path.ToString()); 245? originalPath : output.ToString();
System.IO.FileSystem.DriveInfo (2)
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcMountInfo.cs (1)
60format = currentFormat.ToString();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.cs (1)
55mountPoints.Add(mount.MountPoint.ToString());
System.IO.FileSystem.Watcher (6)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
89private string DebuggerDisplay => AsSpan().ToString();
System\IO\FileSystemWatcher.cs (3)
419OnRenamed(new RenamedEventArgs(action, _directory, name.IsEmpty ? null : name.ToString(), oldName.IsEmpty ? null : oldName.ToString())); 448InvokeOn(new FileSystemEventArgs(changeType, _directory, name.IsEmpty ? null : name.ToString()), handler);
System\IO\FileSystemWatcher.Linux.cs (2)
652string directoryPath = dir.GetPath(nextEvent.name, pathBuffer, fullPath: true).ToString(); 1168string name = @event.GetName(pathBuffer).ToString();
System.IO.Packaging (4)
System\IO\Packaging\ContentType.cs (4)
293_type = ValidateToken(typeAndSubType.Slice(0, forwardSlashPos).ToString()); 294_subType = ValidateToken(typeAndSubType.Slice(forwardSlashPos + 1).ToString()); 336ValidateToken(parameterAndValue.Slice(0, equalSignIndex).ToString()), 337ValidateQuotedStringOrToken(parameterAndValue.Slice(parameterStartIndex, parameterValueLength).ToString()));
System.Net.Http (4)
src\runtime\src\libraries\Common\src\System\Net\HttpKnownHeaderNames.TryGetHeaderName.cs (1)
41return value.ToString();
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
89private string DebuggerDisplay => AsSpan().ToString();
System\Net\Http\HttpMethod.cs (1)
94new HttpMethod(method.ToString());
System\Net\Http\HttpRuleParser.cs (1)
323Debug.Assert(!ContainsNewLineOrNull(host.ToString()));
System.Net.Http.WinHttpHandler (3)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
85return buffer.Slice(0, length).ToString();
src\runtime\src\libraries\Common\src\System\Net\HttpKnownHeaderNames.TryGetHeaderName.cs (1)
41return value.ToString();
System\Net\Http\WinHttpResponseHeaderReader.cs (1)
57name = nameSpan.ToString();
System.Net.HttpListener (5)
src\runtime\src\libraries\Common\src\System\Net\CookieParser.cs (1)
143_tokenStream.AsSpan(_start, _tokenLength).Trim().ToString();
System\Net\HttpListenerRequest.cs (2)
340attrValue = headerValue.AsSpan(i + 1, j - i - 1).Trim().ToString(); 353attrValue = headerValue.AsSpan(i, j - i).Trim().ToString();
System\Net\Managed\HttpListenerRequest.Managed.cs (2)
218string name = header.AsSpan(0, colon).Trim().ToString(); 219string val = header.AsSpan(colon + 1).Trim().ToString();
System.Net.Mail (3)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
89private string DebuggerDisplay => AsSpan().ToString();
System\Net\Mail\MailAddressParser.cs (1)
439displayName = data.AsSpan(index + 1, startingIndex - index).Trim().ToString();
System\Net\Mime\SmtpDateTime.cs (1)
287timeZone = timeZoneSpan.ToString();
System.Net.Primitives (3)
src\runtime\src\libraries\Common\src\System\Net\CookieParser.cs (1)
143_tokenStream.AsSpan(_start, _tokenLength).Trim().ToString();
System\Net\Cookie.cs (1)
313m_domainKey = CookieComparer.StripLeadingDot(m_domain).ToString().ToLowerInvariant();
System\Net\CookieContainer.cs (1)
691string match = host[(dot + 1)..].ToString();
System.Net.Requests (3)
System\Net\FtpControlStream.cs (1)
980string filename = str.AsSpan(start, end - start).TrimEnd(s_whitespaceDot).ToString();
System\Net\HttpWebResponse.cs (2)
314_characterSet = contentType.AsSpan(i, j - i).Trim().ToString(); 316_characterSet = contentType.AsSpan(i).Trim().ToString();
System.Net.Security (1)
System\Security\Authentication\ExtendedProtection\ServiceNameCollection.cs (1)
227host.ToString());
System.Net.WebHeaderCollection (2)
System\Net\HeaderInfoTable.cs (2)
41tempStringCollection.Add(singleValue.ToString()); 53tempStringCollection.Add(value.AsSpan(startIndex, length).Trim().ToString());
System.Private.CoreLib (66)
src\runtime\src\libraries\Common\src\Interop\Interop.ICU.cs (2)
20InitICUFunctions(icuuc, icuin, version.ToString(), suffix.Length > 0 ? suffix.ToString() : null);
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcMountInfo.cs (1)
60format = currentFormat.ToString();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.cs (1)
55mountPoints.Add(mount.MountPoint.ToString());
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (2)
84throw new FileLoadException(SR.InvalidAssemblyName, name.ToString()); 498tokenString = sb.AsSpan(0, length).ToString();
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
89private string DebuggerDisplay => AsSpan().ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (1)
338public string Create(ReadOnlySpan<char> span) => span.ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\NonRandomizedStringEqualityComparer.cs (2)
106span.ToString(); 138span.ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\RandomizedStringEqualityComparer.cs (2)
58span.ToString(); 103span.ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (3)
757case ParseFailureKind.Format_BadDateOnly: throw new FormatException(SR.Format(SR.Format_BadDateOnly, s.ToString())); 760throw new FormatException(SR.Format(SR.Format_DateTimeOnlyContainsNoneDateParts, s.ToString(), nameof(DateOnly))); 882throw new FormatException(SR.Format(SR.Format_DateTimeOnlyContainsNoneDateParts, format.ToString(), nameof(DateOnly)));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventSource.cs (1)
759throw new ArgumentException(SR.Format(SR.EventSource_UnknownEtwTrait, etwTrait.ToString()), "traits");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
1121throw new ArgumentException(SR.Format(SR.Arg_EnumValueNotFound, originalValue.ToString()));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (1)
460callbackContext->Results.Add(calendarStringSpan.ToString());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (1)
1040string resultString = vlb.AsSpan().ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (3)
224return output.ToString(); 257return unicode.ToString(); 681string asciiString = ascii.ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.Nls.cs (3)
208eraName.ToString(), abbreviatedEraName.ToString(), abbreviatedEnglishEraName.ToString());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (2)
45string resultString = vlb.AsSpan().ToString(); 523_literals[field] = sb.AsSpan().ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\DirectoryInfo.cs (1)
53Path.GetFileName(Path.TrimEndingDirectorySeparator(fullPath))).ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (2)
363throw Interop.GetExceptionForIoErrno(errorInfo, mkdirPath.ToString()); 392throw Interop.GetExceptionForIoErrno(errorInfo, mkdirPath.ToString());
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (5)
186return GetExtension(path.AsSpan()).ToString(); 230return result.ToString(); 260return result.ToString(); 449return path2.ToString(); 451return path1.ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (9)
339string result = FormatDecimalIeee754<TDecimal, TValue, char>(ref vlb, value, format, info) ?? vlb.AsSpan().ToString(); 452string result = vlb.AsSpan().ToString(); 880string result = FormatFloat(ref vlb, value, format, info) ?? vlb.AsSpan().ToString(); 1081string result = vlb.AsSpan().ToString(); 1195string result = vlb.AsSpan().ToString(); 1311string result = vlb.AsSpan().ToString(); 1427string result = vlb.AsSpan().ToString(); 1545string result = vlb.AsSpan().ToString(); 1663string result = vlb.AsSpan().ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (1)
1726errorMessage = SR.Format(SR.Format_InvalidStringWithValue, value.ToString());
src\runtime\src\libraries\System.Private.CoreLib\src\System\ReadOnlyMemory.cs (1)
141return (_object is string str) ? str.Substring(_index, _length) : Span.ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\FrameworkName.cs (2)
127_identifier = frameworkNameSpan[components[0]].Trim().ToString(); 183_profile = value.ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.cs (2)
778return s.ToString(); 785result = s.ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (2)
2007splitStrings[arrIndex++] = thisEntry.ToString(); 2047splitStrings[arrIndex++] = thisEntry.ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (4)
288span.ToString(); 407span.ToString(); 469span.ToString(); 551span.ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\CompositeFormat.cs (1)
312itemFormat = format.Slice(startingPos, pos - startingPos).ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (3)
926case ParseFailureKind.Format_BadTimeOnly: throw new FormatException(SR.Format(SR.Format_BadTimeOnly, s.ToString())); 929throw new FormatException(SR.Format(SR.Format_DateTimeOnlyContainsNoneDateParts, s.ToString(), nameof(TimeOnly))); 1051throw new FormatException(SR.Format(SR.Format_DateTimeOnlyContainsNoneDateParts, format.ToString(), nameof(TimeOnly)));
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (1)
865throw new InvalidTimeZoneException(SR.Format(SR.InvalidTimeZone_UnparsablePosixMDateString, date.ToString()));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Version.cs (1)
458Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(originalInput).ToString() :
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeName.cs (1)
399rootTypeName._namespace = rootFullName.Slice(0, idx).ToString();
src\runtime\src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParser.cs (3)
64Debug.Assert(parsedName.GetNodeCount() == recursiveDepth, $"Node count mismatch for '{typeName.ToString()}'"); 205throw new IO.FileLoadException(SR.InvalidAssemblyName, _inputString.ToString()); 214string fullName = fullTypeName.ToString();
System.Private.DataContractSerialization (5)
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (2)
178throw XmlExceptionHelper.CreateConversionException(ticksvalue.ToString(), "Int64", exception); 200throw XmlExceptionHelper.CreateConversionException(ticksvalue.ToString(), "DateTime", exception);
System\Runtime\Serialization\Json\XmlJsonReader.cs (2)
938throw XmlExceptionHelper.CreateConversionException(value.ToString(), "char", exception); 950throw XmlExceptionHelper.CreateConversionException(value.ToString(), "Int32", exception);
System\Xml\XmlBinaryWriter.cs (1)
603_attributeValue.WriteText(chars.ToString());
System.Private.Uri (5)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
89private string DebuggerDisplay => AsSpan().ToString();
System\Uri.cs (1)
2712string s = result.ToString();
System\UriExt.cs (1)
515return backingString ?? charsToUnescape.ToString();
System\UriHelper.cs (2)
213return backingString ?? charsToEscape.ToString(); 575return backingString ?? strToClean.ToString();
System.Private.Windows.Core (5)
_generated\37\Windows.Win32.char.InlineArrays.g.cs (4)
65 internal readonly string ToString(int length) => AsReadOnlySpan().Slice(0, length).ToString(); 70 public override readonly string ToString() => AsReadOnlySpan().SliceAtNull().ToString(); 129 internal readonly string ToString(int length) => AsReadOnlySpan().Slice(0, length).ToString(); 134 public override readonly string ToString() => AsReadOnlySpan().SliceAtNull().ToString();
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
220return chars.ToString();
System.Private.Xml (3)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
89private string DebuggerDisplay => AsSpan().ToString();
System\Xml\XPath\Internal\XPathScanner.cs (2)
343return span.Slice(0, i).ToString(); 348return span.ToString();
System.Reflection.Metadata (5)
src\runtime\src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
498tokenString = sb.AsSpan(0, length).ToString();
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
89private string DebuggerDisplay => AsSpan().ToString();
System\Reflection\Metadata\TypeName.cs (1)
399rootTypeName._namespace = rootFullName.Slice(0, idx).ToString();
System\Reflection\Metadata\TypeNameParser.cs (2)
64Debug.Assert(parsedName.GetNodeCount() == recursiveDepth, $"Node count mismatch for '{typeName.ToString()}'"); 214string fullName = fullTypeName.ToString();
System.Resources.Extensions (2)
System\Resources\Extensions\TypeNameComparer.cs (2)
109AssemblyName an1 = new AssemblyName(typeSpan1.ToString()); 110AssemblyName an2 = new AssemblyName(typeSpan2.ToString());
System.Runtime.Numerics (2)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder_1.cs (1)
111return Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(slice).ToString();
System\Number.BigInteger.cs (1)
987strResult = Unsafe.BitCast<ReadOnlySpan<TChar>, ReadOnlySpan<char>>(vlb.AsSpan()).ToString();
System.Security.Cryptography (6)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
85return buffer.Slice(0, length).ToString();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaCng.Windows.cs (1)
222$"{nameof(parameterSet)}: {parameterSet.ToString()}, " +
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaImplementation.Windows.cs (1)
180$"{nameof(parameterSet)}: {parameterSet.ToString()}, " +
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaCng.Windows.cs (1)
464$"{nameof(parameterSet)}: {parameterSet.ToString()}, " +
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaImplementation.Windows.cs (1)
247$"{nameof(parameterSet)}: {parameterSet.ToString()}, " +
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
89private string DebuggerDisplay => AsSpan().ToString();
System.Security.Cryptography.Pkcs (1)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
85return buffer.Slice(0, length).ToString();
System.Security.Cryptography.ProtectedData (1)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
85return buffer.Slice(0, length).ToString();
System.ServiceProcess.ServiceController (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
89private string DebuggerDisplay => AsSpan().ToString();
System.Speech (1)
src\runtime\src\libraries\Common\src\Interop\Windows\WinMm\Interop.waveOutGetDevCaps.cs (1)
75szPname = ((ReadOnlySpan<char>)szPname).ToString(),
System.Text.Encodings.Web (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
89private string DebuggerDisplay => AsSpan().ToString();
System.Text.Json (3)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
89private string DebuggerDisplay => AsSpan().ToString();
System\Text\Json\Document\JsonElement.cs (1)
181throw new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, propertyName.ToString()));
System\Text\Json\ThrowHelper.Serialization.cs (1)
379return str.ToString();
System.Text.RegularExpressions (4)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
89private string DebuggerDisplay => AsSpan().ToString();
System\Text\RegularExpressions\RegexCompiler.cs (1)
6486Ldstr(chars.ToString());
System\Text\RegularExpressions\RegexNode.cs (1)
1480new RegexNode(RegexNodeKind.Multi, startingNodeOptions, startingSpan.ToString());
System\Text\RegularExpressions\RegexReplacement.cs (1)
62strings.Append(vsb.AsSpan().ToString());
System.Text.RegularExpressions.Generator (3)
RegexGenerator.Emitter.cs (1)
530: Literal(chars.ToString());
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
89private string DebuggerDisplay => AsSpan().ToString();
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (1)
1480new RegexNode(RegexNodeKind.Multi, startingNodeOptions, startingSpan.ToString());
System.Threading.AccessControl (1)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
85return buffer.Slice(0, length).ToString();
System.Web.HttpUtility (1)
src\runtime\src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
89private string DebuggerDisplay => AsSpan().ToString();
System.Windows.Extensions (2)
System\Xaml\Permissions\XamlAccessLevel.cs (2)
35string typeName = assemblyQualifiedTypeName.AsSpan(0, nameBoundary).Trim().ToString(); 36string assemblyFullName = assemblyQualifiedTypeName.AsSpan(nameBoundary + 1).Trim().ToString();
System.Windows.Forms (8)
System\Resources\ResXResourceReader.cs (1)
450return typeName.AsSpan(0, index).Trim().ToString();
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1448string eventName = comSourceInterfaces.Value.AsSpan().SliceAtFirstNull().ToString();
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (2)
762nameString = helpString.ToString(); 767nameString = name.ToString();
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (1)
97return typeInfoName.AsSpan().TrimStart('_').ToString();
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
2231return new Font(cf.FaceName.ToString(), fontSize, style, GraphicsUnit.Point, cf.bCharSet);
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (2)
465return [directory.ToString()]; 473? fileName.ToString()
System.Windows.Forms.Primitives (12)
_generated\19\Windows.Win32.char.InlineArrays.g.cs (10)
65 internal readonly string ToString(int length) => AsReadOnlySpan().Slice(0, length).ToString(); 70 public override readonly string ToString() => AsReadOnlySpan().SliceAtNull().ToString(); 129 internal readonly string ToString(int length) => AsReadOnlySpan().Slice(0, length).ToString(); 134 public override readonly string ToString() => AsReadOnlySpan().SliceAtNull().ToString(); 193 internal readonly string ToString(int length) => AsReadOnlySpan().Slice(0, length).ToString(); 198 public override readonly string ToString() => AsReadOnlySpan().SliceAtNull().ToString(); 257 internal readonly string ToString(int length) => AsReadOnlySpan().Slice(0, length).ToString(); 262 public override readonly string ToString() => AsReadOnlySpan().SliceAtNull().ToString(); 321 internal readonly string ToString(int length) => AsReadOnlySpan().Slice(0, length).ToString(); 326 public override readonly string ToString() => AsReadOnlySpan().SliceAtNull().ToString();
System\ComponentModel\TypeConverterHelper.cs (1)
55output[i] = (T)converter.ConvertFromString(context, culture, text[tokens[i]].ToString())!;
System\Windows\Forms\Automation\UiaTextRange.cs (1)
881private static string GetFontName(LOGFONTW logfont) => logfont.FaceName.ToString();
System.Xaml (2)
System\Xaml\MS\Impl\XmlNsInfo.cs (1)
227string assemblyName = _fullyQualifyAssemblyName ? assembly.FullName : ReflectionUtils.GetAssemblyPartialName(assembly).ToString();
System\Xaml\XamlSchemaContext.cs (1)
1045string assemblyName = FullyQualifyAssemblyNamesInClrNamespaces ? assembly.FullName : ReflectionUtils.GetAssemblyPartialName(assembly).ToString();
VBCSCompiler (7)
src\roslyn\src\Compilers\Server\VBCSCompiler\BuildServerController.cs (7)
245options.PipeName = argSpan[pipeArgPrefix.Length..].ToString(); 250if (!int.TryParse(timeoutValue.ToString(), NumberStyles.Integer, CultureInfo.InvariantCulture, out var parsedTimeout) || 266options.LogFilePath = parsedLogFilePath.ToString(); 295var value = argSpan[purgeCacheArgPrefix.Length..].ToString(); 321var value = argSpan[cacheStatsArgPrefix.Length..].ToString(); 332var value = argSpan[cacheStatsVerbosityArgPrefix.Length..].ToString(); 343var value = argSpan[cachePathArgPrefix.Length..].ToString();