using System; using System.Diagnostics; namespace System.Collections.Generic { /// Defines a key/value pair that can be set or retrieved. /// The type of the key. /// The type of the value. /// 1 // Token: 0x0200010D RID: 269 [DebuggerDisplay("{value}", Name = "[{key}]")] [Serializable] public struct KeyValuePair { /// Initializes a new instance of the structure with the specified key and value. /// The object defined in each key/value pair. /// The definition associated with . // Token: 0x06000D03 RID: 3331 RVA: 0x00039E8C File Offset: 0x0003808C public KeyValuePair(TKey key, TValue value) { this.Key = key; this.Value = value; } /// Gets the key in the key/value pair. /// A that is the key of the . // Token: 0x170001F2 RID: 498 // (get) Token: 0x06000D04 RID: 3332 RVA: 0x00039E9C File Offset: 0x0003809C // (set) Token: 0x06000D05 RID: 3333 RVA: 0x00039EA4 File Offset: 0x000380A4 public TKey Key { get { return this.key; } private set { this.key = value; } } /// Gets the value in the key/value pair. /// A that is the value of the . // Token: 0x170001F3 RID: 499 // (get) Token: 0x06000D06 RID: 3334 RVA: 0x00039EB0 File Offset: 0x000380B0 // (set) Token: 0x06000D07 RID: 3335 RVA: 0x00039EB8 File Offset: 0x000380B8 public TValue Value { get { return this.value; } private set { this.value = value; } } /// Returns a string representation of the , using the string representations of the key and value. /// A string representation of the , which includes the string representations of the key and value. // Token: 0x06000D08 RID: 3336 RVA: 0x00039EC4 File Offset: 0x000380C4 public override string ToString() { string[] array = new string[5]; array[0] = "["; int num = 1; string text; if (this.Key != null) { TKey tkey = this.Key; text = tkey.ToString(); } else { text = string.Empty; } array[num] = text; array[2] = ", "; int num2 = 3; string text2; if (this.Value != null) { TValue tvalue = this.Value; text2 = tvalue.ToString(); } else { text2 = string.Empty; } array[num2] = text2; array[4] = "]"; return string.Concat(array); } // Token: 0x0400037C RID: 892 private TKey key; // Token: 0x0400037D RID: 893 private TValue value; } }