Initial commit
[mono.git] / mcs / class / referencesource / mscorlib / system / collections / keyvaluepairs.cs
1 // ==++==
2 // 
3 //   Copyright (c) Microsoft Corporation.  All rights reserved.
4 // 
5 // ==--==
6 /*============================================================
7 **
8 ** Class:  KeyValuePairs
9 ** 
10 ** <OWNER>[....]</OWNER>
11 **
12 **
13 ** Purpose: KeyValuePairs to display items in collection class under debugger
14 **
15 **
16 ===========================================================*/
17
18 namespace System.Collections {
19     using System.Diagnostics;
20     
21     [DebuggerDisplay("{value}", Name = "[{key}]", Type = "" )]
22     internal class KeyValuePairs {
23         [DebuggerBrowsable(DebuggerBrowsableState.Never)]
24         private object key;
25
26         [DebuggerBrowsable(DebuggerBrowsableState.Never)]
27         private object value;
28
29         public KeyValuePairs(object key, object value) {
30             this.value = value;
31             this.key = key;
32         }
33
34         public object Key {
35             get { return key; }
36         }
37
38         public object Value {
39             get { return value; }
40         }
41     }    
42 }