ContractNamespaceAttribute.cs 504 B

12345678910111213141516171819202122232425
  1. using System;
  2. namespace System.Runtime.Serialization
  3. {
  4. [AttributeUsage (AttributeTargets.Assembly | AttributeTargets.Module,
  5. Inherited = false, AllowMultiple = true)]
  6. public sealed class ContractNamespaceAttribute : Attribute
  7. {
  8. string clrNS, contractNS;
  9. public ContractNamespaceAttribute ()
  10. {
  11. }
  12. public string ClrNamespace {
  13. get { return clrNS; }
  14. set { clrNS = value; }
  15. }
  16. public string ContractNamespace {
  17. get { return contractNS; }
  18. set { contractNS = value; }
  19. }
  20. }
  21. }