XmlNodeEventArgs.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. //
  2. // XmlNodeEventArgs.cs:
  3. //
  4. // Author:
  5. // John Donagher ([email protected])
  6. //
  7. // (C) 2002 John Donagher
  8. //
  9. using System.Xml;
  10. using System;
  11. namespace System.Xml.Serialization
  12. {
  13. /// <summary>
  14. /// Summary description for XmlNodeEventArgs.
  15. /// </summary>
  16. public class XmlNodeEventArgs : EventArgs
  17. {
  18. private int linenumber;
  19. private int lineposition ;
  20. private string localname;
  21. private string name;
  22. private string nsuri;
  23. private XmlNodeType nodetype;
  24. private object source;
  25. private string text;
  26. internal XmlNodeEventArgs(int linenumber, int lineposition, string localname, string name, string nsuri,
  27. XmlNodeType nodetype, object source, string text)
  28. {
  29. this.linenumber = linenumber;
  30. this.lineposition = lineposition;
  31. this.localname = localname;
  32. this.name = name;
  33. this.nsuri = nsuri;
  34. this.nodetype = nodetype;
  35. this.source = source;
  36. this.text = text;
  37. }
  38. public int LineNumber
  39. {
  40. get { return linenumber; }
  41. }
  42. public int LinePosition
  43. {
  44. get { return lineposition; }
  45. }
  46. public string LocalName
  47. {
  48. get { return localname; }
  49. }
  50. public string Name
  51. {
  52. get { return name; }
  53. }
  54. public string NamespaceURI
  55. {
  56. get { return nsuri; }
  57. }
  58. public XmlNodeType NodeType
  59. {
  60. get { return nodetype; }
  61. }
  62. public object ObjectBeingDeserialized
  63. {
  64. get { return source; }
  65. }
  66. public string Text
  67. {
  68. get { return text; }
  69. }
  70. }
  71. }