70 lines
2.0 KiB
C#
70 lines
2.0 KiB
C#
using System;
|
|
using System.Diagnostics;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace System.Collections
|
|
{
|
|
/// <summary>Defines a dictionary key/value pair that can be set or retrieved.</summary>
|
|
/// <filterpriority>1</filterpriority>
|
|
// Token: 0x02000129 RID: 297
|
|
[DebuggerDisplay("{_value}", Name = "[{_key}]")]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public struct DictionaryEntry
|
|
{
|
|
/// <summary>Initializes an instance of the <see cref="T:System.Collections.DictionaryEntry" /> type with the specified key and value.</summary>
|
|
/// <param name="key">The object defined in each key/value pair. </param>
|
|
/// <param name="value">The definition associated with <paramref name="key" />. </param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="key" /> is null and the .NET Framework version is 1.0 or 1.1. </exception>
|
|
// Token: 0x06000F74 RID: 3956 RVA: 0x00040A18 File Offset: 0x0003EC18
|
|
public DictionaryEntry(object key, object value)
|
|
{
|
|
this._key = key;
|
|
this._value = value;
|
|
}
|
|
|
|
/// <summary>Gets or sets the key in the key/value pair.</summary>
|
|
/// <returns>The key in the key/value pair.</returns>
|
|
/// <filterpriority>1</filterpriority>
|
|
// Token: 0x1700026E RID: 622
|
|
// (get) Token: 0x06000F75 RID: 3957 RVA: 0x00040A28 File Offset: 0x0003EC28
|
|
// (set) Token: 0x06000F76 RID: 3958 RVA: 0x00040A30 File Offset: 0x0003EC30
|
|
public object Key
|
|
{
|
|
get
|
|
{
|
|
return this._key;
|
|
}
|
|
set
|
|
{
|
|
this._key = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the value in the key/value pair.</summary>
|
|
/// <returns>The value in the key/value pair.</returns>
|
|
/// <filterpriority>1</filterpriority>
|
|
// Token: 0x1700026F RID: 623
|
|
// (get) Token: 0x06000F77 RID: 3959 RVA: 0x00040A3C File Offset: 0x0003EC3C
|
|
// (set) Token: 0x06000F78 RID: 3960 RVA: 0x00040A44 File Offset: 0x0003EC44
|
|
public object Value
|
|
{
|
|
get
|
|
{
|
|
return this._value;
|
|
}
|
|
set
|
|
{
|
|
this._value = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x040003BD RID: 957
|
|
private object _key;
|
|
|
|
// Token: 0x040003BE RID: 958
|
|
private object _value;
|
|
}
|
|
}
|