68 references to Create
Aspire.Dashboard (1)
Otlp\Model\OtlpHelpers.cs (1)
76return string.Create(bytes.Length * 2, bytes, static (chars, bytes) =>
Aspire.Hosting (1)
VolumeNameGenerator.cs (1)
39return string.Create(name.Length, name, static (s, name) =>
http2cat (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
125return string.Create(length, (str, separator, number), s_populateSpanWithHexSuffix);
IIS.FunctionalTests (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
125return string.Create(length, (str, separator, number), s_populateSpanWithHexSuffix);
IIS.LongTests (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
125return string.Create(length, (str, separator, number), s_populateSpanWithHexSuffix);
IIS.NewHandler.FunctionalTests (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
125return string.Create(length, (str, separator, number), s_populateSpanWithHexSuffix);
IIS.NewShim.FunctionalTests (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
125return string.Create(length, (str, separator, number), s_populateSpanWithHexSuffix);
IIS.ShadowCopy.Tests (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
125return string.Create(length, (str, separator, number), s_populateSpanWithHexSuffix);
IISExpress.FunctionalTests (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
125return string.Create(length, (str, separator, number), s_populateSpanWithHexSuffix);
InMemory.FunctionalTests (3)
Http3\Http3StreamTests.cs (2)
2906var headerText = string.Create(6 * 1024, new object(), (chars, state) => 2946var headerText = string.Create(6 * 1024, new object(), (chars, state) =>
src\Servers\Kestrel\shared\CorrelationIdGenerator.cs (1)
20return string.Create(13, id, (buffer, value) =>
Microsoft.AspNetCore.Components.QuickGrid (1)
Columns\GridSort.cs (1)
170return string.Create(length, body, (chars, body) =>
Microsoft.AspNetCore.Http (1)
Features\HttpRequestIdentifierFeature.cs (1)
40return string.Create(13, id, (buffer, value) =>
Microsoft.AspNetCore.Http.Extensions (1)
UriHelper.cs (1)
92return string.Create(length, (scheme, hostText, pathBaseText, pathText, queryText, fragmentText), InitializeAbsoluteUriStringSpanAction);
Microsoft.AspNetCore.Identity.FunctionalTests (1)
src\Identity\Extensions.Core\src\Base32.cs (1)
26return string.Create(((length + 4) / 5) * 8, 0, static (buffer, _) =>
Microsoft.AspNetCore.Mvc.Razor (1)
ViewPath.cs (1)
24return string.Create(length, (path, addLeadingSlash), (span, tuple) =>
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
src\Mvc\Mvc.Razor\src\ViewPath.cs (1)
24return string.Create(length, (path, addLeadingSlash), (span, tuple) =>
src\Mvc\Mvc.RazorPages\src\ApplicationModels\PageRouteModelFactory.cs (1)
144return string.Create(1 + areaName.Length + viewEnginePath.Length, (areaName, viewEnginePath), (span, tuple) =>
Microsoft.AspNetCore.Mvc.RazorPages (1)
ApplicationModels\PageRouteModelFactory.cs (1)
144return string.Create(1 + areaName.Length + viewEnginePath.Length, (areaName, viewEnginePath), (span, tuple) =>
Microsoft.AspNetCore.ResponseCaching (1)
FastGuid.cs (1)
55return string.Create(13, guid.IdValue, (buffer, value) =>
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
Matching\JumpTableMultipleEntryBenchmark.cs (1)
161text = string.Create(text.Length, text, static (buffer, state) =>
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
125return string.Create(length, (str, separator, number), s_populateSpanWithHexSuffix);
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
125return string.Create(length, (str, separator, number), s_populateSpanWithHexSuffix);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
125return string.Create(length, (str, separator, number), s_populateSpanWithHexSuffix);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\CorrelationIdGenerator.cs (1)
20return string.Create(13, id, (buffer, value) =>
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\CorrelationIdGenerator.cs (1)
20return string.Create(13, id, (buffer, value) =>
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\Servers\Kestrel\shared\CorrelationIdGenerator.cs (1)
20return string.Create(13, id, (buffer, value) =>
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
src\Servers\Kestrel\shared\CorrelationIdGenerator.cs (1)
20return string.Create(13, id, (buffer, value) =>
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
125return string.Create(length, (str, separator, number), s_populateSpanWithHexSuffix);
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
src\Servers\Kestrel\shared\CorrelationIdGenerator.cs (1)
20return string.Create(13, id, (buffer, value) =>
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\ServerInfrastructure\StringUtilities.cs (1)
125return string.Create(length, (str, separator, number), s_populateSpanWithHexSuffix);
Microsoft.Build.Tasks.Core (1)
StringUtils.cs (1)
20return string.Create(length, 0, static (dest, _) =>
Microsoft.Extensions.Hosting.Systemd (1)
SystemdNotifier.cs (1)
73socketPath = string.Create(socketPath.Length, socketPath, (buffer, state) =>
Microsoft.Extensions.Identity.Core (2)
Base32.cs (1)
26return string.Create(((length + 4) / 5) * 8, 0, static (buffer, _) =>
UserManager.cs (1)
2027return string.Create(11, 0, static (buffer, _) =>
Microsoft.Extensions.Primitives (1)
StringValues.cs (1)
224return string.Create(length, values, (span, strings) => {
Microsoft.Net.Http.Headers (4)
HeaderUtilities.cs (3)
574return string.Create(31, dateTime, (span, dt) => 626return string.Create(input.Length - backSlashCount, input, (span, segment) => 696return string.Create(input.Length + backSlashCount + 2, input, (span, segment) =>
SetCookieHeaderValue.cs (1)
252return string.Create(length, (this, maxAge, sameSite), (span, tuple) =>
PresentationFramework (2)
MS\Internal\PtsHost\ListMarkerSourceInfo.cs (1)
189return string.Create(digits + 1, (numericSymbols, number, b, disjoint), (result, state) => // digits + suffix
System\Windows\Documents\FixedSOMTextRun.cs (1)
154run.Text = string.Create(run.Text.Length, run.Text, (destination, runText) =>
ResultsOfTGenerator (1)
Program.cs (1)
1074public static string TitleCase(this string value) => string.Create(value.Length, value, (c, s) =>
System.Collections.Specialized (1)
System\Collections\Specialized\BitVector32.cs (1)
162return string.Create(/*"BitVector32{".Length*/12 + /*32 bits*/32 + /*"}".Length"*/1, value, (dst, v) =>
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\XmlWriterTraceListener.cs (1)
72TraceEvent(null, SR.TraceAsTraceSource, TraceEventType.Error, 0, string.Create(length, (message, detailMessage),
System.Formats.Cbor (1)
System\Formats\Cbor\CborHelpers.netcoreapp.cs (1)
41=> string.Create(length, state, action);
System.IO.MemoryMappedFiles (1)
System\IO\MemoryMappedFiles\MemoryMappedFile.Unix.cs (1)
262return string.Create(MaxNameLength, 0, (span, state) =>
System.Memory (2)
System\Buffers\ReadOnlySequence.cs (1)
503return string.Create((int)Length, charSequence, (span, sequence) => sequence.CopyTo(span));
System\Text\EncodingExtensions.cs (1)
386return string.Create(totalCharCount, listOfSegments, (span, listOfSegments) =>
System.Net.HttpListener (2)
src\libraries\Common\src\System\Net\WebHeaderEncoding.cs (1)
25return string.Create(byteCount, (bytes, byteIndex), (buffer, state) =>
System\Net\HttpListener.cs (1)
178return string.Create(length, (uriPrefix, j, i), static (destination, state) =>
System.Private.DataContractSerialization (2)
System\Xml\UniqueId.cs (1)
301_s ??= string.Create(CharArrayLength, this, (destination, thisRef) => thisRef.ToSpan(destination));
System\Xml\XmlConverter.cs (1)
1130return string.Create(count, s, static (chars, s) =>
System.Private.Uri (1)
System\Uri.cs (1)
1382return string.Create(3, (byte)character, (Span<char> chars, byte b) =>
System.Private.Xml (4)
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
2328return string.Create(cch, (_data, pos), static (dstChars, state) =>
System\Xml\Dom\XmlEntityReference.cs (1)
194return string.Create(buf.Length + systemId.Length, (buf, systemId), (dest, state) =>
System\Xml\Serialization\CodeIdentifier.cs (2)
37return string.Create(identifier.Length, identifier, static (buffer, identifier) => 62return string.Create(identifier.Length, identifier, static (buffer, identifier) =>
System.Security.Cryptography (4)
System\Security\Cryptography\AsnFormatter.cs (1)
25return string.Create(length, sArray, (hexOrder, sArray) =>
System\Security\Cryptography\RandomNumberGenerator.cs (1)
281return string.Create(stringLength, lowercase, GetHexStringCore);
System\Security\Cryptography\X509Certificates\X500NameEncoder.ManagedDecode.cs (1)
188return string.Create(1 + data.Length * 2, data, static (buff, state) =>
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (1)
566return string.Create(size, this, static (destination, col) => {
System.Text.Json (1)
src\libraries\System.Text.Json\Common\JsonCamelCaseNamingPolicy.cs (1)
16return string.Create(name.Length, name, (chars, name) =>
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexCharClass.cs (1)
571.Create(strLength, (set, category, startsWithNulls), static (span, state) =>
System.Windows.Forms (1)
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (1)
593return string.Create(s.Length + 2, s, static (span, s) =>
System.Windows.Forms.Design (2)
System\ComponentModel\Design\ByteViewer.cs (1)
423_edit.Text = string.Create(_dataBuf.Length / sizeof(char) + 1, _dataBuf, static (text, dataBuf) =>
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
1017string baseName = string.Create(dataType.Name.Length, dataType.Name, static (span, baseName) =>