41 references to Create
PresentationCore (1)
System\Windows\Media\Color.cs (1)
272return string.Create(provider, stackalloc char[128], $"#{this.sRgbColor.a:X2}{this.sRgbColor.r:X2}{this.sRgbColor.g:X2}{this.sRgbColor.b:X2}");
PresentationFramework (6)
System\Windows\ComponentResourceKey.cs (1)
125string.Create(null, stackalloc char[256], $"TargetType={((_typeInTargetAssembly != null) ? _typeInTargetAssembly.FullName : "null")} ID={((_resourceId != null) ? _resourceId.ToString() : "null")}");
System\Windows\Controls\VirtualizationCacheLengthConverter.cs (1)
172return string.Create(cultureInfo, stackalloc char[128],
System\Windows\CornerRadiusConverter.cs (1)
151return string.Create(cultureInfo, stackalloc char[64], $"{cr.TopLeft}{listSeparator}{cr.TopRight}{listSeparator}{cr.BottomRight}{listSeparator}{cr.BottomLeft}");
System\Windows\Documents\RtfToXamlReader.cs (2)
1960CF < 0 ? string.Create(CultureInfo.InvariantCulture, stackalloc char[128], $"\\brdrs\\brdrw{EffectiveWidth}") : 1961string.Create(CultureInfo.InvariantCulture, stackalloc char[128], $"\\brdrs\\brdrw{EffectiveWidth}\\brdrcf{CF}");
System\Windows\Markup\BamlReader.cs (1)
1914_value = string.Create(null, stackalloc char[100], $"XmlNamespace=\"{_xmlNamespace}\" ClrNamespace=\"{_clrNamespace}\" Assembly=\"{_assemblyName}\"");
System.ComponentModel.TypeConverter (1)
System\ComponentModel\MaskedTextProvider.cs (1)
92string.Create(
System.Console (2)
System\TermInfo.DatabaseFactory.cs (2)
112if (!TryOpen(string.Create(null, stackBuffer, $"{directoryPath}/{term[0]}/{term}"), out fd) && // /directory/termFirstLetter/term (Linux) 113!TryOpen(string.Create(null, stackBuffer, $"{directoryPath}/{(int)term[0]:X}/{term}"), out fd)) // /directory/termFirstLetterAsHex/term (Mac)
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\Activity.cs (2)
247string.Create(null, stackalloc char[128], $"00-{_traceId}-{_spanId}-{flagsChars}"); 279string.Create(null, stackalloc char[128], $"00-{_traceId}-{_parentSpanId}-{flagsChars}");
System.Diagnostics.Process (9)
src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.cs (7)
77string.Create(null, stackalloc char[256], $"{RootPath}{(uint)pid}{ExeFileName}"); 81string.Create(null, stackalloc char[256], $"{RootPath}{(uint)pid}{CmdLineFileName}"); 85string.Create(null, stackalloc char[256], $"{RootPath}{(uint)pid}{StatFileName}"); 89string.Create(null, stackalloc char[256], $"{RootPath}{(uint)pid}{TaskDirectoryName}"); 93string.Create(null, stackalloc char[256], $"{RootPath}{(uint)pid}{FileDescriptorDirectoryName}"); 96pid == ProcPid.Self ? string.Create(null, stackalloc char[256], $"{RootPath}{Self}{TaskDirectoryName}{(uint)tid}{StatFileName}") : 97string.Create(null, stackalloc char[256], $"{RootPath}{(uint)pid}{TaskDirectoryName}{(uint)tid}{StatFileName}");
src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.ParseMapModules.cs (1)
20string.Create(null, stackalloc char[256], $"{RootPath}{(uint)pid}{MapsFileName}");
src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.TryReadStatusFile.cs (1)
55string.Create(null, stackalloc char[256], $"{RootPath}{(uint)pid}{StatusFileName}");
System.Diagnostics.TraceSource (4)
System\Diagnostics\TraceListener.cs (4)
177TraceEvent(eventCache, source, TraceEventType.Transfer, id, string.Create(null, stackalloc char[256], $"{message}, relatedActivityId={relatedActivityId}")); 383Write(string.Create(CultureInfo.InvariantCulture, stackalloc char[256], $"{source} {eventType}: {id} : ")); 424WriteLine(string.Create(null, stackBuffer, $"DateTime={eventCache.DateTime:o}")); 427WriteLine(string.Create(null, stackBuffer, $"Timestamp={eventCache.Timestamp}"));
System.IO.IsolatedStorage (1)
System\IO\IsolatedStorage\IsolatedStorage.cs (1)
156hash = string.Create(null, stackalloc char[128], $"{hash}{SeparatorExternal}{hash}");
System.Net.Http (5)
System\Net\Http\Headers\RangeItemHeaderValue.cs (3)
58return string.Create(CultureInfo.InvariantCulture, stackBuffer, $"-{_to}"); 63return string.Create(CultureInfo.InvariantCulture, stackBuffer, $"{_from}-"); ; 66return string.Create(CultureInfo.InvariantCulture, stackBuffer, $"{_from}-{_to}");
System\Net\Http\Headers\StringWithQualityHeaderValue.cs (1)
51: string.Create(CultureInfo.InvariantCulture, stackalloc char[128], $"{_value}; q={_quality:0.0##}");
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.cs (1)
150hostName = string.Create(null, stackalloc char[128], $"{hostName}:{authUri.Port}");
System.Net.Primitives (1)
System\Net\IPNetwork.cs (1)
284string.Create(CultureInfo.InvariantCulture, stackalloc char[128], $"{BaseAddress}/{(uint)PrefixLength}");
System.Private.CoreLib (7)
src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.TryReadStatusFile.cs (1)
55string.Create(null, stackalloc char[256], $"{RootPath}{(uint)pid}{StatusFileName}");
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\KeyValuePair.cs (1)
20string.Create(null, stackalloc char[256], $"[{key}, {value}]");
src\libraries\System.Private.CoreLib\src\System\OperatingSystem.cs (2)
110string.Create(null, stackBuffer, $"{os}{_version}") : 111string.Create(null, stackBuffer, $"{os}{_version.ToString(3)} {_servicePack}");
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.FullGlobalizationData.Unix.cs (1)
161string baseOffsetText = string.Create(null, stackalloc char[128], $"(UTC{(baseUtcOffset >= TimeSpan.Zero ? '+' : '-')}{baseUtcOffset:hh\\:mm})");
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (1)
238string? displayName = string.Create(null, stackalloc char[256], $"(UTC{(_baseUtcOffset >= TimeSpan.Zero ? '+' : '-')}{_baseUtcOffset:hh\\:mm}) {_id}");
src\System\Reflection\MdImport.cs (1)
171public override string ToString() => string.Create(CultureInfo.InvariantCulture, stackalloc char[64], $"0x{Value:x8}");
System.Private.Xml (2)
System\Xml\Core\CharEntityEncoderFallback.cs (2)
75_charEntity = string.Create(null, stackalloc char[64], $"&#x{(int)charUnknown:X};"); 102_charEntity = string.Create(null, stackalloc char[64], $"&#x{SurrogateCharToUtf32(charUnknownHigh, charUnknownLow):X};");