XmlIncludeAttribute.cs 516 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // XmlIncludeAttribute.cs:
  3. //
  4. // Author:
  5. // John Donagher ([email protected])
  6. //
  7. // (C) 2002 John Donagher
  8. //
  9. using System;
  10. namespace System.Xml.Serialization
  11. {
  12. [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method, AllowMultiple=true)]
  13. public class XmlIncludeAttribute : Attribute
  14. {
  15. private Type type;
  16. public XmlIncludeAttribute (Type type)
  17. {
  18. Type = type;
  19. }
  20. public Type Type {
  21. get {
  22. return type;
  23. }
  24. set {
  25. type = value;
  26. }
  27. }
  28. }
  29. }