diff options
Diffstat (limited to 'src/mscorlib/src/System/Collections/KeyValuePairs.cs')
-rw-r--r-- | src/mscorlib/src/System/Collections/KeyValuePairs.cs | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/mscorlib/src/System/Collections/KeyValuePairs.cs b/src/mscorlib/src/System/Collections/KeyValuePairs.cs new file mode 100644 index 0000000000..ed4275d039 --- /dev/null +++ b/src/mscorlib/src/System/Collections/KeyValuePairs.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +/*============================================================ +** +** +** +** +** +** Purpose: KeyValuePairs to display items in collection class under debugger +** +** +===========================================================*/ + +namespace System.Collections { + using System.Diagnostics; + + [DebuggerDisplay("{value}", Name = "[{key}]", Type = "" )] + internal class KeyValuePairs { + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private object key; + + [DebuggerBrowsable(DebuggerBrowsableState.Never)] + private object value; + + public KeyValuePairs(object key, object value) { + this.value = value; + this.key = key; + } + + public object Key { + get { return key; } + } + + public object Value { + get { return value; } + } + } +} |