SatelliteContractVersionAttribute.cs 901 B

12345678910111213141516171819202122232425262728293031
  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. **
  7. **
  8. **
  9. **
  10. ** Purpose: Specifies which version of a satellite assembly
  11. ** the ResourceManager should ask for.
  12. **
  13. **
  14. ===========================================================*/
  15. namespace System.Resources
  16. {
  17. [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
  18. public sealed class SatelliteContractVersionAttribute : Attribute
  19. {
  20. public SatelliteContractVersionAttribute(string version)
  21. {
  22. if (version == null)
  23. throw new ArgumentNullException(nameof(version));
  24. Version = version;
  25. }
  26. public string Version { get; }
  27. }
  28. }