Base:
method
ToString
System.ValueType.ToString()
107 references to ToString
Aspire.Dashboard (1)
Otlp\Model\OtlpApplication.cs (1)
273instanceId = chars.Slice(0, 8).ToString();
illink (1)
Microsoft.AspNetCore.Components.Endpoints (3)
Builder\ResourceCollectionUrlEndpoint.cs (1)
128return fingerprintSpan[..(length + 1)].ToString();
FormMapping\FormDataReader.cs (2)
273return _currentPrefixBuffer.Span[(index + 1)..].ToString(); 278return _currentPrefixBuffer.Span[(index + 1)..^1].ToString();
Microsoft.AspNetCore.Http.Abstractions (2)
PathString.cs (2)
191return new PathString(pathBuffer.ToString()); 207return new PathString(pathBuffer.ToString());
Microsoft.AspNetCore.Http.Extensions (3)
src\Components\Endpoints\src\FormMapping\FormDataReader.cs (2)
273return _currentPrefixBuffer.Span[(index + 1)..].ToString(); 278return _currentPrefixBuffer.Span[(index + 1)..^1].ToString();
src\Shared\ValueStringBuilder\ValueStringBuilder.cs (1)
93string s = _chars.Slice(0, _pos).ToString();
Microsoft.AspNetCore.HttpLogging (1)
src\Shared\ValueStringBuilder\ValueStringBuilder.cs (1)
93string s = _chars.Slice(0, _pos).ToString();
Microsoft.AspNetCore.WebSockets (1)
src\Shared\ValueStringBuilder\ValueStringBuilder.cs (1)
93string s = _chars.Slice(0, _pos).ToString();
Microsoft.AspNetCore.WebUtilities (2)
HttpRequestStreamReader.cs (2)
422return ReadLineStepResult.FromResult(span.ToString()); 444return ReadLineStepResult.FromResult(span.ToString());
Microsoft.Build (2)
FileUtilities.cs (2)
597return shouldAdjust ? newValue.ToString() : value; 629return shouldAdjust ? newValue.ToString().AsMemory() : value;
Microsoft.Build.Engine.OM.UnitTests (2)
FileUtilities.cs (2)
597return shouldAdjust ? newValue.ToString() : value; 629return shouldAdjust ? newValue.ToString().AsMemory() : value;
Microsoft.Build.Tasks.Core (2)
FileUtilities.cs (2)
597return shouldAdjust ? newValue.ToString() : value; 629return shouldAdjust ? newValue.ToString().AsMemory() : value;
Microsoft.Build.Utilities.Core (2)
FileUtilities.cs (2)
597return shouldAdjust ? newValue.ToString() : value; 629return shouldAdjust ? newValue.ToString().AsMemory() : value;
Microsoft.Extensions.AI.Abstractions (1)
Contents\DataContent.cs (1)
161_uri = array.AsSpan(0, prefixLength + dataLength).ToString();
Microsoft.Extensions.Compliance.Abstractions.Tests (2)
Redaction\RedactorTest.cs (2)
68Assert.Equal(extBuffer.ToString(), buffer.ToString());
Microsoft.Extensions.Compliance.Redaction.Tests (1)
ErasingRedactorTests.cs (1)
46var bufferString = buffer.ToString();
Microsoft.Extensions.Compliance.Testing (1)
FakeRedactor.cs (1)
84EventCollector.Append(new RedactedData(sourceString, destination.Slice(0, str.Length).ToString(), order));
Microsoft.Extensions.Http.Diagnostics (1)
Logging\Internal\HttpHeadersRedactor.cs (1)
148return destinationMany.ToString();
Microsoft.Extensions.Logging.Abstractions (1)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
92string s = _chars.Slice(0, _pos).ToString();
Microsoft.Extensions.Telemetry (1)
Logging\JustInTimeRedactor.cs (1)
159result = t.AsSpan().Slice(0, redactedLen).ToString();
Microsoft.Extensions.Telemetry.Tests (2)
Logging\JustInTimeRedactorTests.cs (2)
47Assert.Equal($"{ShortRedactorPrefix}<{redactorInput}>", d.Slice(0, charsWritten).ToString()); 71Assert.Equal($"{longRedactorPrefix}<{redactorInput}>", d.Slice(0, charsWritten).ToString());
Microsoft.ML.TestFrameworkCommon (1)
TestLogger.cs (1)
50_testOutput.WriteLine(span.ToString());
Microsoft.ML.Tokenizers (13)
Model\SentencePieceUnigramModel.cs (9)
256normalizedText = normalizedString.AsSpan().Slice(0, normalizedStringIndex).ToString(); 284normalizedText = normalizedString.AsSpan().Slice(0, normalizedStringIndex).ToString(); 700normalizedText = normalizedString.AsSpan().Slice(0, normalizedStringIndex).ToString(); 722normalizedText = normalizedString.AsSpan().Slice(0, normalizedStringIndex).ToString(); 1070normalizedText = normalizedString.AsSpan().Slice(0, normalizedStringIndex).ToString(); 1092normalizedText = normalizedString.AsSpan().Slice(0, normalizedStringIndex).ToString(); 1288normalizedText = normalizedString is not null ? normalizedString.AsSpan(normalizedString.Length - normalizedStringCountFromEnd).ToString() : null; 1326normalizedText = normalizedString is not null ? normalizedString.AsSpan().Slice(normalizedString.Length - normalizedStringCountFromEnd).ToString() : null; 1344normalizedText = normalizedString is not null ? normalizedString.AsSpan().Slice(normalizedString.Length - normalizedStringCountFromEnd).ToString() : null;
Normalizer\SentencePieceNormalizer.cs (1)
192string result = span.Slice(0, bufferIndex).ToString();
Tokenizer.cs (1)
392string result = destination.AsSpan(0, charsWritten).ToString();
Utils\ValueStringBuilder.cs (2)
97string s = span.ToString(); 104string s = _chars.Slice(0, _pos).ToString();
Microsoft.ML.Tokenizers.Tests (15)
BpeTests.cs (3)
342Assert.Equal(expectedDecoded, destinationBuffer.AsSpan().ToString()); 837Assert.Equal(beginningOfSentenceToken + text, destinationBuffer.AsSpan(0, charsWritten).ToString()); 840Assert.Equal(text, destinationBuffer.AsSpan(0, charsWritten).ToString());
CodeGenTests.cs (1)
328Assert.Equal(expectedDecoded, destinationBuffer.AsSpan().ToString());
EnglishRobertaTests.cs (1)
331Assert.Equal(expectedDecoded, destinationBuffer.AsSpan().ToString());
LlamaTests.cs (6)
324Assert.Equal(expectedDecoded, destinationBuffer.AsSpan().ToString()); 390Assert.Equal(llamaTokenizer.EndOfSentenceToken, destinationBuffer.ToString()); 856Assert.Equal(decodedWithNoSpecialTokens, destinationBuffer.AsSpan().ToString()); 870Assert.Equal(textWithSpecialTokens, destinationBuffer.AsSpan().ToString()); 895Assert.Equal(decodedWithNoSpecialTokens, destinationBuffer.AsSpan().Slice(0, charactersWritten).ToString()); 914Assert.Equal(textWithSpecialTokens, destinationBuffer.AsSpan(0, charactersWritten).ToString());
TiktokenTests.cs (1)
187Assert.Equal(expectedDecoded, destinationBuffer.AsSpan().ToString());
UnigramTests.cs (2)
545Assert.Equal(decodedString, buffer.AsSpan().Slice(0, charsWritten).ToString()); 551Assert.Equal(decodedString.AsSpan().Slice(0, charsWritten).ToString(), buffer.AsSpan().Slice(0, charsWritten).ToString());
WordPieceTests.cs (1)
114Assert.Equal(j == 0 ? "" : text.Substring(0, tokens[j - 1].Offset.End.Value), bufferSlice.Slice(0, charsWritten).ToString());
MSBuild (2)
FileUtilities.cs (2)
597return shouldAdjust ? newValue.ToString() : value; 629return shouldAdjust ? newValue.ToString().AsMemory() : value;
System.Console (1)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
92string s = _chars.Slice(0, _pos).ToString();
System.Diagnostics.DiagnosticSource (1)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
92string s = _chars.Slice(0, _pos).ToString();
System.Diagnostics.Process (1)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
92string s = _chars.Slice(0, _pos).ToString();
System.Formats.Tar (1)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
92string s = _chars.Slice(0, _pos).ToString();
System.IO.FileSystem.Watcher (1)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
92string s = _chars.Slice(0, _pos).ToString();
System.Net.Http (1)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
92string s = _chars.Slice(0, _pos).ToString();
System.Net.Mail (1)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
92string s = _chars.Slice(0, _pos).ToString();
System.Net.Primitives (1)
src\libraries\Common\src\System\Net\SocketAddress.cs (1)
200return result.Slice(0, length).ToString();
System.Private.CoreLib (10)
src\libraries\Common\src\Interop\Interop.Utils.cs (2)
27result = buffer.Slice(0, buffer.IndexOf('\0')).ToString(); 37result = buffer.Slice(0, buffer.IndexOf('\0')).ToString();
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
92string s = _chars.Slice(0, _pos).ToString();
src\libraries\System.Private.CoreLib\src\System\Convert.cs (1)
2310return chars.Slice(i).ToString();
src\libraries\System.Private.CoreLib\src\System\Environment.Variables.Windows.cs (1)
39span.Slice(0, (int)length).ToString() :
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (1)
237shortDatePatterns[0] = modifiedPattern.ToString();
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (1)
449return result.Slice(0, resultPos).ToString();
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (1)
980return span.Slice(0, charsWritten).ToString();
src\libraries\System.Private.CoreLib\src\System\Memory.cs (1)
212return (_object is string str) ? str.Substring(_index, _length) : Span.ToString();
src\libraries\System.Private.CoreLib\src\System\Version.cs (1)
176return dest.Slice(0, charsWritten).ToString();
System.Private.Uri (1)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
92string s = _chars.Slice(0, _pos).ToString();
System.Private.Windows.Core (5)
System\BufferScope.cs (1)
130public override readonly string ToString() => _span.ToString();
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
222string s = fileName[..(int)charactersCopied].ToString();
System\Private\Windows\Ole\DataFormatsCore.cs (1)
100name = buffer[..length].ToString();
System\Text\ValueStringBuilder.cs (1)
106public override readonly string ToString() => _chars[.._pos].ToString();
Windows\Win32\PInvokeCore.GetWindowText.cs (1)
66return buffer[..actualTextLength].ToString();
System.Private.Xml (4)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
92string s = _chars.Slice(0, _pos).ToString();
System\Xml\Cache\XPathDocumentNavigator.cs (1)
925return buf.Slice(0, idx).ToString();
System\Xml\Schema\XsdDateTime.cs (1)
493return destination.Slice(0, charsWritten).ToString();
System\Xml\Schema\XsdDuration.cs (1)
349return destination.Slice(0, charsWritten).ToString();
System.Reflection.Metadata (1)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
92string s = _chars.Slice(0, _pos).ToString();
System.Runtime.Numerics (1)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
92string s = _chars.Slice(0, _pos).ToString();
System.Security.Cryptography (1)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
92string s = _chars.Slice(0, _pos).ToString();
System.Text.Encodings.Web (1)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
92string s = _chars.Slice(0, _pos).ToString();
System.Text.Json (2)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
92string s = _chars.Slice(0, _pos).ToString();
src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (1)
133string result = destination.Slice(0, charsWritten).ToString();
System.Text.Json.SourceGeneration (1)
src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (1)
133string result = destination.Slice(0, charsWritten).ToString();
System.Text.RegularExpressions (2)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
92string s = _chars.Slice(0, _pos).ToString();
System\Text\RegularExpressions\RegexNode.cs (1)
1457return new StartingLiteralData(setChars: setChars.Slice(0, numChars).ToString(), negated: RegexCharClass.IsNegated(node.Str!));
System.Text.RegularExpressions.Generator (4)
src\libraries\Common\src\System\HexConverter.cs (1)
195return result.ToString();
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
92string s = _chars.Slice(0, _pos).ToString();
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (1)
1457return new StartingLiteralData(setChars: setChars.Slice(0, numChars).ToString(), negated: RegexCharClass.IsNegated(node.Str!));
Stubs.cs (1)
43return span.ToString();
System.Web.HttpUtility (2)
src\libraries\Common\src\System\Text\ValueStringBuilder.cs (1)
92string s = _chars.Slice(0, _pos).ToString();
System\Web\Util\HttpEncoder.cs (1)
705return chars.ToString();
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (1)
309return chars.ToString();