The Labs \ Source Viewer \ SSCLI \ System.ComponentModel.Design \ IDictionaryService

  1. //------------------------------------------------------------------------------
  2. // <copyright file="IDictionaryService.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. /*
  16. */
  17. namespace System.ComponentModel.Design
  18. {
  19.     using System.ComponentModel;
  20.    
  21.     using System.Diagnostics;
  22.    
  23.     using System;
  24.    
  25.     /// <devdoc>
  26.     /// <para>Provides a generic dictionary service that a designer can use
  27.     /// to store user-defined data on the site.</para>
  28.     /// </devdoc>
  29.     public interface IDictionaryService
  30.     {
  31.        
  32.         /// <devdoc>
  33.         /// <para>
  34.         /// Gets the key corresponding to the specified value.
  35.         /// </para>
  36.         /// </devdoc>
  37.         object GetKey(object value);
  38.        
  39.         /// <devdoc>
  40.         /// <para>
  41.         /// Gets the value corresponding to the specified key.
  42.         /// </para>
  43.         /// </devdoc>
  44.         object GetValue(object key);
  45.        
  46.         /// <devdoc>
  47.         /// <para>
  48.         /// Sets the specified key-value pair.</para>
  49.         /// </devdoc>
  50.         void SetValue(object key, object value);
  51.     }
  52. }

Developer Fusion