Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
KeyValuePairAdapter.cs
Go to the documentation of this file.
2
4
5[DataContract(Namespace = "http://schemas.datacontract.org/2004/07/System.Collections.Generic")]
6internal sealed class KeyValuePairAdapter<K, T> : IKeyValuePairAdapter
7{
8 private K _kvpKey;
9
10 private T _kvpValue;
11
12 [DataMember(Name = "key")]
13 public K Key
14 {
15 get
16 {
17 return _kvpKey;
18 }
19 set
20 {
21 _kvpKey = value;
22 }
23 }
24
25 [DataMember(Name = "value")]
26 public T Value
27 {
28 get
29 {
30 return _kvpValue;
31 }
32 set
33 {
35 }
36 }
37
43
48
53}
static KeyValuePairAdapter< K, T > GetKeyValuePairAdapter(KeyValuePair< K, T > kvPair)