Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ PairToString()

static string System.Collections.Generic.KeyValuePair< TKey, TValue >.PairToString ( object key,
object value )
inlinestaticpackage

Definition at line 14 of file KeyValuePair.cs.

15 {
16 IFormatProvider formatProvider = null;
17 IFormatProvider provider = formatProvider;
18 Span<char> initialBuffer = stackalloc char[256];
19 DefaultInterpolatedStringHandler handler = new DefaultInterpolatedStringHandler(4, 2, formatProvider, initialBuffer);
20 handler.AppendLiteral("[");
21 handler.AppendFormatted<object>(key);
22 handler.AppendLiteral(", ");
23 handler.AppendFormatted<object>(value);
24 handler.AppendLiteral("]");
25 return string.Create(provider, initialBuffer, ref handler);
26 }

References System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(), System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(), System.Collections.Generic.KeyValuePair< TKey, TValue >.key, and System.Collections.Generic.KeyValuePair< TKey, TValue >.value.

Referenced by System.Collections.Generic.KeyValuePair< TKey, TValue >.ToString().