2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / class / System.XML / System.Xml.Serialization / XmlAttributeEventArgs.cs
index 376ad55187cc595f46c79df61a8d046e7f5dbaa7..b73b906b95c4aec4f2602dd7d4812e4dc0120db4 100644 (file)
@@ -7,6 +7,27 @@
 // (C) 2002 John Donagher
 //
 
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
 using System.Xml;\r
 using System;\r
 \r
@@ -17,22 +38,33 @@ namespace System.Xml.Serialization
        /// </summary>\r
        public class XmlAttributeEventArgs : EventArgs\r
        {\r
-               [MonoTODO]\r
+               private XmlAttribute attr;\r
+               private int lineNumber;\r
+               private int linePosition;\r
+               private object obj;\r
+\r
+               internal XmlAttributeEventArgs(XmlAttribute attr, int lineNum, int linePos, object source)\r
+               {\r
+                       this.attr               = attr;\r
+                       this.lineNumber = lineNum;\r
+                       this.linePosition = linePos;\r
+                       this.obj                = source;\r
+               }\r
+\r
                public XmlAttribute Attr { \r
-                       get { throw new NotImplementedException(); }\r
+                       get { return attr; }\r
                }\r
-               [MonoTODO]\r
+\r
                public int LineNumber {\r
-                       get { throw new NotImplementedException(); }\r
+                       get { return lineNumber; }\r
                }\r
-               [MonoTODO]\r
+               \r
                public int LinePosition {\r
-                       get { throw new NotImplementedException(); }\r
+                       get { return linePosition; }\r
                }\r
-               [MonoTODO]\r
+               \r
                public object ObjectBeingDeserialized {\r
-                       get{ throw new NotImplementedException(); }\r
+                       get{ return obj; }\r
                }\r
-\r
        }\r
 }\r