ContractNamespaceAttribute.cs 896 B

1234567891011121314151617181920212223242526272829303132
  1. //------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //------------------------------------------------------------
  4. namespace System.Runtime.Serialization
  5. {
  6. using System;
  7. [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module, Inherited = false, AllowMultiple = true)]
  8. public sealed class ContractNamespaceAttribute : Attribute
  9. {
  10. string clrNamespace;
  11. string contractNamespace;
  12. public ContractNamespaceAttribute(string contractNamespace)
  13. {
  14. this.contractNamespace = contractNamespace;
  15. }
  16. public string ClrNamespace
  17. {
  18. get { return clrNamespace; }
  19. set { clrNamespace = value; }
  20. }
  21. public string ContractNamespace
  22. {
  23. get { return contractNamespace; }
  24. }
  25. }
  26. }