From d1eb94eb677b6298c501c470976494a3a29e16df Mon Sep 17 00:00:00 2001 From: Duncan Mak Date: Sun, 15 Sep 2002 18:46:41 +0000 Subject: 2002-09-15 Duncan Mak * FileSystemWatcher.cs (FileSystemWatcher): Fixed the null-param constructor. svn path=/trunk/mcs/; revision=7479 --- mcs/class/System.XML/System.Xml/XmlTextReader.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mcs/class/System.XML/System.Xml') diff --git a/mcs/class/System.XML/System.Xml/XmlTextReader.cs b/mcs/class/System.XML/System.Xml/XmlTextReader.cs index 634115e6ddc..85a8922ba85 100644 --- a/mcs/class/System.XML/System.Xml/XmlTextReader.cs +++ b/mcs/class/System.XML/System.Xml/XmlTextReader.cs @@ -316,7 +316,10 @@ namespace System.Xml [MonoTODO] public override string GetAttribute (int i) { - throw new NotImplementedException (); + if (i > attributes.Count) + throw new ArgumentOutOfRangeException ("i is smaller than AttributeCount"); + else + throw new NotImplementedException (); } public override string GetAttribute (string name) -- cgit v1.2.3