Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
KeyValuePair.cs
Go to the documentation of this file.
4
6
7public static class KeyValuePair
8{
10 {
12 }
13
14 internal static string PairToString(object key, object value)
15 {
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 }
27}
28[Serializable]
29[TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
30public readonly struct KeyValuePair<TKey, TValue>
31{
33 private readonly TKey key;
34
36 private readonly TValue value;
37
38 public TKey Key => key;
39
40 public TValue Value => value;
41
42 public KeyValuePair(TKey key, TValue value)
43 {
44 this.key = key;
45 this.value = value;
46 }
47
48 public override string ToString()
49 {
51 }
52
54 public void Deconstruct(out TKey key, out TValue value)
55 {
56 key = Key;
57 value = Value;
58 }
59}
void Deconstruct(out TKey key, out TValue value)
static KeyValuePair< TKey, TValue > Create< TKey, TValue >(TKey key, TValue value)
static string PairToString(object key, object value)
KeyValuePair(TKey key, TValue value)