CollectionDataContractAttribute.cs 470 B

12345678910111213141516171819202122232425
  1. using System;
  2. namespace System.Runtime.Serialization
  3. {
  4. [AttributeUsage (AttributeTargets.Class | AttributeTargets.Struct,
  5. Inherited = false, AllowMultiple = false)]
  6. public sealed class CollectionDataContractAttribute : Attribute
  7. {
  8. string name, ns;
  9. public CollectionDataContractAttribute ()
  10. {
  11. }
  12. public string Name {
  13. get { return name; }
  14. set { name = value; }
  15. }
  16. public string Namespace {
  17. get { return ns; }
  18. set { ns = value; }
  19. }
  20. }
  21. }