NeutralResourcesLanguageAttribute.cs 617 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // System.Resources.NeutralResourcesLanguageAttribute.cs
  3. //
  4. // Author:
  5. // Duncan Mak ([email protected])
  6. //
  7. // (C) 2001 Ximian, Inc. http://www.ximian.com
  8. //
  9. namespace System.Resources
  10. {
  11. [AttributeUsage (AttributeTargets.Assembly)]
  12. public sealed class NeutralResourcesLanguageAttribute : Attribute
  13. {
  14. private string culture;
  15. // Constructors
  16. public NeutralResourcesLanguageAttribute (string cultureName)
  17. {
  18. if(cultureName==null) {
  19. throw new ArgumentNullException("culture is null");
  20. }
  21. culture = cultureName;
  22. }
  23. public string CultureName
  24. {
  25. get { return culture; }
  26. }
  27. }
  28. }