120 references to Create
Aspire.Dashboard (1)
Otlp\Model\OtlpHelpers.cs (1)
78return string.Create(bytes.Length * 2, bytes, static (chars, bytes) =>
Aspire.Hosting (1)
VolumeNameGenerator.cs (1)
39return string.Create(name.Length, name, static (s, name) =>
GenerateDocumentationAndConfigFiles (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\TextReaderWithLength.cs (1)
16return string.Create(Length, this, static (chars, state) => state.Read(chars));
http2cat (3)
src\Shared\ServerInfrastructure\StringUtilities.cs (3)
26var resultString = string.Create(span.Length, span, static (destination, source) => 56return string.Create(span.Length, span, static (destination, source) => 125return string.Create(length, (str, separator, number), s_populateSpanWithHexSuffix);
IIS.FunctionalTests (3)
src\Shared\ServerInfrastructure\StringUtilities.cs (3)
26var resultString = string.Create(span.Length, span, static (destination, source) => 56return string.Create(span.Length, span, static (destination, source) => 125return string.Create(length, (str, separator, number), s_populateSpanWithHexSuffix);
IIS.LongTests (3)
src\Shared\ServerInfrastructure\StringUtilities.cs (3)
26var resultString = string.Create(span.Length, span, static (destination, source) => 56return string.Create(span.Length, span, static (destination, source) => 125return string.Create(length, (str, separator, number), s_populateSpanWithHexSuffix);
IIS.NewHandler.FunctionalTests (3)
src\Shared\ServerInfrastructure\StringUtilities.cs (3)
26var resultString = string.Create(span.Length, span, static (destination, source) => 56return string.Create(span.Length, span, static (destination, source) => 125return string.Create(length, (str, separator, number), s_populateSpanWithHexSuffix);
IIS.NewShim.FunctionalTests (3)
src\Shared\ServerInfrastructure\StringUtilities.cs (3)
26var resultString = string.Create(span.Length, span, static (destination, source) => 56return string.Create(span.Length, span, static (destination, source) => 125return string.Create(length, (str, separator, number), s_populateSpanWithHexSuffix);
IIS.ShadowCopy.Tests (3)
src\Shared\ServerInfrastructure\StringUtilities.cs (3)
26var resultString = string.Create(span.Length, span, static (destination, source) => 56return string.Create(span.Length, span, static (destination, source) => 125return string.Create(length, (str, separator, number), s_populateSpanWithHexSuffix);
IISExpress.FunctionalTests (3)
src\Shared\ServerInfrastructure\StringUtilities.cs (3)
26var resultString = string.Create(span.Length, span, static (destination, source) => 56return string.Create(span.Length, span, static (destination, source) => 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)
179return 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 (3)
src\Shared\ServerInfrastructure\StringUtilities.cs (3)
26var resultString = string.Create(span.Length, span, static (destination, source) => 56return string.Create(span.Length, span, static (destination, source) => 125return string.Create(length, (str, separator, number), s_populateSpanWithHexSuffix);
Microsoft.AspNetCore.Server.IIS (3)
src\Shared\ServerInfrastructure\StringUtilities.cs (3)
26var resultString = string.Create(span.Length, span, static (destination, source) => 56return string.Create(span.Length, span, static (destination, source) => 125return string.Create(length, (str, separator, number), s_populateSpanWithHexSuffix);
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Infrastructure\HttpUtilities.cs (1)
92var str = string.Create(span.Length, span, static (destination, source) =>
src\Shared\ServerInfrastructure\StringUtilities.cs (3)
26var resultString = string.Create(span.Length, span, static (destination, source) => 56return string.Create(span.Length, span, static (destination, source) => 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 (4)
src\Servers\Kestrel\shared\CorrelationIdGenerator.cs (1)
20return string.Create(13, id, (buffer, value) =>
src\Shared\ServerInfrastructure\StringUtilities.cs (3)
26var resultString = string.Create(span.Length, span, static (destination, source) => 56return string.Create(span.Length, span, static (destination, source) => 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 (3)
src\Shared\ServerInfrastructure\StringUtilities.cs (3)
26var resultString = string.Create(span.Length, span, static (destination, source) => 56return string.Create(span.Length, span, static (destination, source) => 125return string.Create(length, (str, separator, number), s_populateSpanWithHexSuffix);
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\TextReaderWithLength.cs (1)
16return string.Create(Length, this, static (chars, state) => state.Read(chars));
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)
2433return 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.DiagnosticSource (1)
src\libraries\Common\src\System\HexConverter.cs (1)
198return string.Create(bytes.Length * 2, args, static (chars, args) =>
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.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 (3)
src\libraries\Common\src\System\HexConverter.cs (1)
198return string.Create(bytes.Length * 2, args, static (chars, args) =>
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.Net.Mail (1)
src\libraries\Common\src\System\HexConverter.cs (1)
198return string.Create(bytes.Length * 2, args, static (chars, args) =>
System.Net.WebClient (1)
src\libraries\Common\src\System\HexConverter.cs (1)
198return string.Create(bytes.Length * 2, args, static (chars, args) =>
System.Private.CoreLib (10)
src\libraries\Common\src\System\HexConverter.cs (1)
198return string.Create(bytes.Length * 2, args, static (chars, args) =>
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Url\Base64UrlEncoder.cs (1)
157return string.Create(encodedLength, (IntPtr)(&source), static (buffer, spanPtr) =>
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (2)
754'o' => string.Create(10, this, (destination, value) => 760'r' => string.Create(16, this, (destination, value) =>
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
1542return string.Create(sizeof(TStorage) * 2, (IntPtr)ptr, (destination, intptr) =>
src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (2)
284return string.Create( 745return string.Create(
src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (1)
347return string.Create(byteCount + byteIndex, (value, byteCount), static (dest, state) =>
src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (2)
926'o' => string.Create(16, this, (destination, value) => 932'r' => string.Create(8, this, (destination, value) =>
System.Private.DataContractSerialization (3)
src\libraries\Common\src\System\HexConverter.cs (1)
198return string.Create(bytes.Length * 2, args, static (chars, args) =>
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 (4)
src\libraries\Common\src\System\HexConverter.cs (1)
198return string.Create(bytes.Length * 2, args, static (chars, args) =>
System\Uri.cs (1)
1382return string.Create(3, (byte)character, (Span<char> chars, byte b) =>
System\UriHelper.cs (2)
16return string.Create(span.Length, span, static (buffer, span) => 646stripped = string.Create(strToClean.Length - charsToRemove, strToClean, static (buffer, strToClean) =>
System.Private.Xml (5)
src\libraries\Common\src\System\HexConverter.cs (1)
198return string.Create(bytes.Length * 2, args, static (chars, args) =>
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.Reflection.Metadata (1)
src\libraries\Common\src\System\HexConverter.cs (1)
198return string.Create(bytes.Length * 2, args, static (chars, args) =>
System.Runtime.Numerics (1)
System\Number.BigInteger.cs (1)
858strResult = string.Create(strLength, (digits, ptr: (IntPtr)ptr, base1E9Value.Length, sNegative), static (span, state) =>
System.Security.Cryptography.Pkcs (1)
src\libraries\Common\src\System\HexConverter.cs (1)
198return string.Create(bytes.Length * 2, args, static (chars, args) =>
System.Security.Cryptography.Xml (1)
src\libraries\Common\src\System\HexConverter.cs (1)
198return string.Create(bytes.Length * 2, args, static (chars, args) =>
System.Text.Encodings.Web (1)
src\libraries\Common\src\System\HexConverter.cs (1)
198return string.Create(bytes.Length * 2, args, static (chars, args) =>
System.Text.Json (2)
src\libraries\Common\src\System\HexConverter.cs (1)
198return string.Create(bytes.Length * 2, args, static (chars, args) =>
src\libraries\System.Text.Json\Common\JsonCamelCaseNamingPolicy.cs (1)
16return string.Create(name.Length, name, (chars, name) =>
System.Text.RegularExpressions (6)
src\libraries\Common\src\System\HexConverter.cs (1)
198return string.Create(bytes.Length * 2, args, static (chars, args) =>
System\Text\RegularExpressions\Regex.Replace.cs (1)
229string result = string.Create(length, span, static (dest, span) =>
System\Text\RegularExpressions\RegexCharClass.cs (2)
571.Create(strLength, (set, category, startsWithNulls), static (span, state) => 1596return string.Create(SetStartIndex + count, tmpChars, static (span, chars) =>
System\Text\RegularExpressions\RegexCompiler.cs (1)
5973string bitVectorString = string.Create(8, charClass, static (dest, charClass) => // String length is 8 chars == 16 bytes == 128 bits.
System\Text\RegularExpressions\RegexReplacement.cs (1)
272result = string.Create(length, ((IntPtr)(&tmpSpan), input, replacement), static (dest, state) =>
System.Web.HttpUtility (1)
src\libraries\Common\src\System\HexConverter.cs (1)
198return string.Create(bytes.Length * 2, args, static (chars, args) =>
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) =>