Welcome to mirror list, hosted at ThFree Co, Russian Federation.

XmlElementEventArgs.cs « System.Xml.Serialization « System.XML « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 94655c0bb0c4617ab9cb9aea7b8661b9a707fd31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//
// XmlElementEventArgs.cs: 
//
// Author:
//   John Donagher (john@webmeta.com)
//
// (C) 2002 John Donagher
//

using System.Xml;
using System;

namespace System.Xml.Serialization
{
	/// <summary>
	/// Summary description for XmlElementEventArgs.
	/// </summary>
	public class XmlElementEventArgs : EventArgs
	{
		private XmlElement attr;
		private int lineNumber;
		private int linePosition;
		private object obj;

		internal XmlElementEventArgs(XmlElement attr, int lineNum, int linePos, object source)
		{
			this.attr		= attr;
			this.lineNumber = lineNum;
			this.linePosition = linePos;
			this.obj		= source;
		}

		public XmlElement Element
		{ 
			get { return attr; }
		}

		public int LineNumber 
		{
			get { return lineNumber; }
		}
		
		public int LinePosition 
		{
			get { return linePosition; }
		}
		
		public object ObjectBeingDeserialized 
		{
			get{ return obj; }
		}
	}
}