We need you! We're working hard on the next version of Developer Fusion - Let us know what you think we should be up to!

The Labs \ Source Viewer \ SSCLI \ System.Resources \ SatelliteContractVersionAttribute

  1. // ==++==
  2. //
  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. //
  14. // ==--==
  15. /*============================================================
  16. **
  17. ** Class:  SatelliteContractVersionAttribute
  18. **
  19. **
  20. ** Purpose: Specifies which version of a satellite assembly
  21. **          the ResourceManager should ask for.
  22. **
  23. **
  24. ===========================================================*/
  25. using System;
  26. namespace System.Resources
  27. {
  28.    
  29.     [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
  30.     [System.Runtime.InteropServices.ComVisible(true)]
  31.     public sealed class SatelliteContractVersionAttribute : Attribute
  32.     {
  33.         private string _version;
  34.        
  35.         public SatelliteContractVersionAttribute(string version)
  36.         {
  37.             if (version == null)
  38.                 throw new ArgumentNullException("version");
  39.             _version = version;
  40.         }
  41.        
  42.         public string Version {
  43.             get { return _version; }
  44.         }
  45.     }
  46. }

Developer Fusion