KeyValuePairs.cs 959 B

123456789101112131415161718192021222324252627282930313233
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. /*============================================================
  5. **
  6. ** Class: KeyValuePairs
  7. **
  8. ** Purpose: Defines key/value pairs for displaying items
  9. ** in a collection class under the debugger.
  10. **
  11. ===========================================================*/
  12. using System.Diagnostics;
  13. namespace System.Collections
  14. {
  15. [DebuggerDisplay("{_value}", Name = "[{_key}]")]
  16. internal class KeyValuePairs
  17. {
  18. [DebuggerBrowsable(DebuggerBrowsableState.Never)]
  19. private readonly object _key;
  20. [DebuggerBrowsable(DebuggerBrowsableState.Never)]
  21. private readonly object _value;
  22. public KeyValuePairs(object key, object value)
  23. {
  24. _value = value;
  25. _key = key;
  26. }
  27. }
  28. }