diff options
Diffstat (limited to 'src/mscorlib/src/System/Collections/KeyValuePairs.cs')
-rw-r--r-- | src/mscorlib/src/System/Collections/KeyValuePairs.cs | 40 |
1 files changed, 40 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..22bf92c456 --- /dev/null +++ b/src/mscorlib/src/System/Collections/KeyValuePairs.cs @@ -0,0 +1,40 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more 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; } + } + } +} |