XmlSchemaObject.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // Author: Dwivedi, Ajay kumar
  2. // [email protected]
  3. using System;
  4. using System.Xml.Serialization;
  5. namespace System.Xml.Schema
  6. {
  7. /// <summary>
  8. /// Summary description for XmlSchemaObject.
  9. /// </summary>
  10. // [XmlInclude(typeof(XmlSchema)),
  11. // XmlInclude(typeof(XmlSchemaAnnotated)),
  12. // XmlInclude(typeof(XmlSchemaAnnotation)),
  13. // XmlInclude(typeof(XmlSchemaAppInfo)),
  14. // XmlInclude(typeof(XmlSchemaDocumentation)),
  15. // XmlInclude(typeof(XmlSchemaExternal))]
  16. public abstract class XmlSchemaObject
  17. {
  18. private int lineNumber;
  19. private int linePosition;
  20. private string sourceUri;
  21. private XmlSerializerNamespaces namespaces;
  22. protected XmlSchemaObject()
  23. {
  24. }
  25. [XmlIgnore]
  26. public int LineNumber
  27. {
  28. get{ return lineNumber; }
  29. set{ lineNumber = value; }
  30. }
  31. [XmlIgnore]
  32. public int LinePosition
  33. {
  34. get{ return linePosition; }
  35. set{ linePosition = value; }
  36. }
  37. [XmlIgnore]
  38. public string SourceUri
  39. {
  40. get{ return sourceUri; }
  41. set{ sourceUri = value; }
  42. }
  43. // Undocumented Property
  44. [XmlNamespaceDeclarations]
  45. public XmlSerializerNamespaces Namespaces
  46. {
  47. get{ return namespaces; }
  48. set{ namespaces = value; }
  49. }
  50. }
  51. }