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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="IResourceService.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.    
  20.     using System.Globalization;
  21.     using System.Resources;
  22.    
  23.     /// <devdoc>
  24.     /// <para>
  25.     /// Provides designers a way to
  26.     /// access a resource for the current design-time
  27.     /// object.</para>
  28.     /// </devdoc>
  29.     public interface IResourceService
  30.     {
  31.        
  32.         /// <devdoc>
  33.         /// <para>
  34.         /// Locates the resource reader for the specified culture and
  35.         /// returns it.</para>
  36.         /// </devdoc>
  37.         IResourceReader GetResourceReader(CultureInfo info);
  38.        
  39.         /// <devdoc>
  40.         /// <para>Locates the resource writer for the specified culture
  41.         /// and returns it. This will create a new resource for
  42.         /// the specified culture and destroy any existing resource,
  43.         /// should it exist.</para>
  44.         /// </devdoc>
  45.         IResourceWriter GetResourceWriter(CultureInfo info);
  46.     }
  47. }

Developer Fusion